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