UploadError

Specifies the structure of upload errors returned when file upload fails.

Props

The following table outlines the props for the UploadError:

NameTypeDefaultDescription
code
-

Specifies the upload error code indicating the type of upload failure.

file
File
-

Specifies the File object that failed to upload, if applicable.

message
string
-

Specifies the human-readable error message describing the upload failure.

status
number
-

Specifies the HTTP status code returned by the server, if applicable.