You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: components/upload/overview.md
+3-1Lines changed: 3 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -33,7 +33,7 @@ Afterwards, take care of [application security](#security) and check our tips fo
33
33
1. Set `SaveUrl` to the endpoint URL that will receive the uploaded files.
34
34
1. (optional) Set `RemoveUrl` to the endpoint URL that will receive the file names to delete.
35
35
1. Configure the allowed file types via `AllowedExtensions`. Use a `List<string>`.
36
-
1. Set `MaxFileSize` in bytes (`int`). Note that [web servers have their own request size restrictions](#large-file-uploads).
36
+
1. Set `MaxFileSize` in bytes. Note that [web servers have their own request size restrictions](#large-file-uploads).
37
37
38
38
Steps 4 and 5 are optional, but strongly recommended.
39
39
@@ -217,6 +217,8 @@ The following table lists the Upload parameters. Also check the [Upload API Refe
217
217
|`DropZoneId`|`string`| The id that is used to connect the Upload to an external [DropZone]({%slug dropzone-overview%}). Assign a value matching the `Id` of the DropZone you are connecting the component with. |
218
218
|`Enabled`|`bool`<br />(`true`) | Enables file selection and upload. |
219
219
|`Id`|`string`| Renders an `id` attribute to the `<input type="file" />` element. Can be used together with a `<label>`. |
220
+
|`MaxFileSize`|`long?`| The maximum allowed file size in bytes. Read more in the [Large File Uploads](#large-file-uploads) section and in the [Validation]({%slug upload-validation%}) article. |
221
+
|`MinFileSize`|`long?`| The minimum allowed file size in bytes. Read more at [Validation]({%slug upload-validation%}). |
220
222
|`Multiple`|`bool`<br />(`true`) | Sets if the user can select several files at the same time. The component always uploads files one by one, and the controller method receives them separately. |
221
223
|`RemoveField`|`string`<br />(`"files"`) | Sets the `FormData` key, which contains the file name submitted for deletion to the [`RemoveUrl` endpoint](#implement-controller-methods). The `RemoveField` value must match the delete controller method's argument name. The user triggers remove requests when clicking on the [x] buttons in the uploaded file list. |
222
224
|`RemoveUrl`|`string`| The URL which receives the file names for deletion. |
0 commit comments