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 FileUpload
Files can be uploaded automatically after selecting them.
Auto & Multiple
Multiple files can be selected to upload automatically.
MaxSize
Multiple files can be selected to upload automatically with limited size.
AllowedExtensions
Single or multiple file uploading limited only by file extensions, which in this case the allowed file extensions include gif, jpg and mp4.
Removable
Single or multiple file uploading with remove functionality enabled.
Events
Multiple files can be selected to upload automatically with calling all upload complete event.
No File
Configuring http request
Multiple files can be selected to upload and remove with custom http headers and query strings.
Non-Chunked
Files can be uploaded automatically after selecting them.
Custom FileUpload
Use custom template for file upload.
Public API
Use a custom method for the open file selection dialog.
Implementation
BitFileUpload parameters
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 |
---|---|---|