# FileUpload

Processes file uploads from the request

## Method Signature

```
FileUpload(destination=[string], filefield=[string], accept=[string], nameconflict=[string], strict=[boolean], allowedExtensions=[string])
```

### Arguments

| Argument            | Type      | Required | Description                                                                                    | Default |
| ------------------- | --------- | -------- | ---------------------------------------------------------------------------------------------- | ------- |
| `destination`       | `string`  | `true`   | The destination directory for the uploaded files.                                              |         |
| `filefield`         | `string`  | `false`  | The name of the file field to process.                                                         |         |
| `accept`            | `string`  | `false`  | The accepted MIME types for the uploaded files.                                                |         |
| `nameconflict`      | `string`  | `false`  | The action to take when a file with the same name already exists in the destination directory. | `error` |
| `strict`            | `boolean` | `false`  | Whether to strictly enforce the system specified upload security settings.                     | `true`  |
| `allowedExtensions` | `string`  | `false`  | The allowed file extensions for the uploaded files.                                            |         |

## Examples

## Related

* [FileUploadAll](https://boxlang.ortusbooks.com/boxlang-framework/modularity/web-support/reference/built-in-functions/web/fileuploadall)
* [Forward](https://boxlang.ortusbooks.com/boxlang-framework/modularity/web-support/reference/built-in-functions/web/forward)
* [GetHTTPRequestData](https://boxlang.ortusbooks.com/boxlang-framework/modularity/web-support/reference/built-in-functions/web/gethttprequestdata)
* [GetHTTPTimeString](https://boxlang.ortusbooks.com/boxlang-framework/modularity/web-support/reference/built-in-functions/web/gethttptimestring)
* [GetPageContext](https://boxlang.ortusbooks.com/boxlang-framework/modularity/web-support/reference/built-in-functions/web/getpagecontext)
* [HtmlFooter](https://boxlang.ortusbooks.com/boxlang-framework/modularity/web-support/reference/built-in-functions/web/htmlfooter)
* [HtmlHead](https://boxlang.ortusbooks.com/boxlang-framework/modularity/web-support/reference/built-in-functions/web/htmlhead)
* [Location](https://boxlang.ortusbooks.com/boxlang-framework/modularity/web-support/reference/built-in-functions/web/location)
* [SetEncoding](https://boxlang.ortusbooks.com/boxlang-framework/modularity/web-support/reference/built-in-functions/web/setencoding)
