> For the complete documentation index, see [llms.txt](https://docs.umbraco.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.umbraco.com/umbraco-forms/editor/creating-a-form/fieldtypes/fileupload.md).

# File Upload

The File Upload field allows the users to upload a file along with the Form on your website.

In this article, you will find details about the configuration options you have for the File Upload field.

![fileupload](https://3134593492-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F8xCfyNy4WLrfX8D6oTtt%2Fuploads%2Fgit-blob-fe6d83959e69ef4f38d0e76a56c2ff6554d782af%2Ffileupload-types-v14.png?alt=media)

## Predefined allowed File Types

You can choose to specify which files you want to allow the user to upload, when accessing the Form.

To allow only specific files:

1. Select the specific File Types the user should be able to upload.
2. Click **Submit**.

{% hint style="info" %}
We recommend selecting only specified files, to limit malicious code to be uploaded, whenever the user is submitting the Form.
{% endhint %}

## User Defined Allowed File Types

If the list of predefined file types does not include a specific file type, you can add additional ones.

To add new file type:

1. Type a file extension name in the **User defined allowed file types** field.
2. Click **+**.
3. Click **Submit**.

## Server-side file validation

The file upload field type will verify the file contents using the registered set of `IFileStreamSecurityValidator` instances.

To read more about this feature, see [Server-side file validation](https://docs.umbraco.com/umbraco-cms/run-in-production/security/serverside-file-validation) in the CMS documentation.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.umbraco.com/umbraco-forms/editor/creating-a-form/fieldtypes/fileupload.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
