The following unions are available in the File Upload component:
| Name | Value | Description |
|---|
| FileStatus | 'idle' | 'validating' | 'queued' | 'uploading' | 'success' | 'error' | 'canceled' | 'paused' | 'removed' | 'ready' | Specifies the different states a file can have during the upload lifecycle.
- 'idle': File is ready for upload
- 'validating': File is being validated
- 'queued': File is queued for upload
- 'uploading': File is currently uploading
- 'success': File uploaded successfully
- 'error': File upload failed
- 'canceled': File upload was canceled
- 'paused': File upload is paused
- 'removed': File was removed from the queue
|
| UploadErrorCode | 'UPLOAD_FAILED' | 'TIMEOUT' | 'NETWORK_ERROR' | 'ABORT' | Specifies the upload error codes that can occur during file upload.
- 'UPLOAD_FAILED': General upload failure
- 'TIMEOUT': Upload request timed out
- 'NETWORK_ERROR': Network connectivity error
- 'ABORT': Upload was aborted by user
|
| ValidationErrorCode | 'INVALID_FILE_TYPE' | 'FILE_SIZE_EXCEEDED' | 'MIN_FILE_SIZE_NOT_MET' | 'MAX_FILES_EXCEEDED' | 'MAX_TOTAL_SIZE_EXCEEDED' | 'DUPLICATE_FILE' | 'DIRECTORY_REQUIRED' | Specifies the validation error codes that can occur when validating files.
- 'INVALID_FILE_TYPE': File type is not allowed
- 'FILE_SIZE_EXCEEDED': File exceeds maximum size limit
- 'MIN_FILE_SIZE_NOT_MET': File is smaller than minimum size
- 'MAX_FILES_EXCEEDED': Maximum file count limit reached
- 'MAX_TOTAL_SIZE_EXCEEDED': Total size limit exceeded
- 'DUPLICATE_FILE': File already exists in the list
|