Skip to content

Commit 4024356

Browse files
dimodiyordan-mitev
andauthored
docs(FileManager|FileSelect|Upload): Update min/max file size parameter types (#2266)
* docs(FileManager|FileSelect|Upload): Update min/max file size parameter types * Update components/fileselect/overview.md Co-authored-by: Yordan <60105689+yordan-mitev@users.noreply.github.com> --------- Co-authored-by: Yordan <60105689+yordan-mitev@users.noreply.github.com>
1 parent 69667e9 commit 4024356

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

components/fileselect/overview.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -92,8 +92,8 @@ The following table lists the FileSelect parameters. Also check the [FileSelect
9292
| `DropZoneId` | `string` | The id that is used to connect the FileSelect to an external [DropZone]({%slug dropzone-overview%}). Assign a value matching the `Id` of the DropZone you are connecting the component with. |
9393
| `Enabled` | `bool`<br />(`true`) | Enables file selection. |
9494
| `Id` | `string` | Renders an `id` attribute to the `<input type="file" />` element. Can be used together with a `<label>`. |
95-
| `MinFileSize` | `int?` | Sets the minimum allowed file size in bytes. Read more at [Validation]({%slug fileselect-validation%}). |
96-
| `MaxFileSize`| `int?` | Sets the maximum allowed file size in bytes. Read more at [Validation]({%slug fileselect-validation%}). |
95+
| `MaxFileSize` | `long?` | Sets the maximum allowed file size in bytes. Read more in the [Large File Support](#large-file-support) section and in the [Validation]({%slug fileselect-validation%}) article. |
96+
| `MinFileSize` | `long?` | Sets the minimum allowed file size in bytes. Read more in the [Validation]({%slug fileselect-validation%}) article. |
9797
| `Multiple` | `bool`<br />(`true`) | Sets if the user can select several files at the same time. |
9898
| `Files` | `IEnumerable<FileSelectFileInfo>` | Collection of files that will be initially displayed in the FileSelect file list. |
9999

components/upload/overview.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ Afterwards, take care of [application security](#security) and check our tips fo
3333
1. Set `SaveUrl` to the endpoint URL that will receive the uploaded files.
3434
1. (optional) Set `RemoveUrl` to the endpoint URL that will receive the file names to delete.
3535
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).
3737

3838
Steps 4 and 5 are optional, but strongly recommended.
3939

@@ -217,6 +217,8 @@ The following table lists the Upload parameters. Also check the [Upload API Refe
217217
| `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. |
218218
| `Enabled` | `bool`<br />(`true`) | Enables file selection and upload. |
219219
| `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%}). |
220222
| `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. |
221223
| `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. |
222224
| `RemoveUrl` | `string` | The URL which receives the file names for deletion. |

0 commit comments

Comments
 (0)