FileUpload
BitFileUpload component wraps the HTML file input element(s) and uploads them to a given URL. The files can be removed by specifying the URL they have been uploaded. Moreover, it provides several other options including single or multiple or automatic file uploading. By automatic, it means the files can be automatically uploaded after being selected. It is possible to specify a maximum size for each file if need be. Additionally, by specifying file extensions, the files can be restricted to certain types.
Usage
Basic
Files can be uploaded after selecting them.
Multiple
Multiple files can be selected.
AutoUpload
The BitFileUpload can automatically starts the upload after file selection is done.
AutoReset
Automatically resets the BitFileUpload state each time before browsing files.
MaxSize
The file size can be limited using the MaxSize parameter.
AllowedExtensions
Limits file browsing by the provided file extensions.
Removable
Enables the remove functionality of the BitFileUpload.
Events
Different events can be configured for the upload process.
No File
Http requests
The http requests of Upload and Remove can be customized with http headers and query strings.
Chunked
Files can be uploaded in chunks.
Templates
The BitFileUpload can be further customized using templates.
Drag and drop or
Browse file
Public API
Use a custom method for the open file selection dialog.
API
BitFileUpload parameters
Name |
Type |
Default value |
Description |
---|---|---|---|
BitFileUpload public members
Name |
Type |
Default value |
Description |
---|---|---|---|
BitComponentBase parameters
Name |
Type |
Default value |
Description |
---|---|---|---|
BitComponentBase public members
Name |
Type |
Default value |
Description |
---|---|---|---|
BitFileUploadStatus enum
Name |
Value |
Description |
---|---|---|
BitVisibility enum
Name |
Value |
Description |
---|---|---|
BitDir enum
Name |
Value |
Description |
---|---|---|
- On this page