# FileInput A styled file upload field. Use it when you need users to attach files to a form — profile pictures, documents, CSV imports, and so on. --- ## Quick example ```csharp new FileInput( id: "avatar", name: "avatar", accept: "image/*", label: "Profile picture", description: "PNG, JPG or GIF up to 2 MB") ``` --- ## All the options ```csharp public FileInput( string id, string name = "", string accept = "", bool multiple = false, string label = "", string description = "", string extraClasses = "", string hxAttrs = "") ``` | Parameter | What it does | |---|---| | `id` | The element id. Also used by the `