FileItem

Specifies the structure of a file item in the file upload with metadata and upload state.

Props

The following table outlines the props for the FileItem:

NameTypeDefaultDescription
completed
Date
-

Specifies the timestamp when the upload completed, if applicable.

created
Date
-

Specifies the timestamp when the file item was created.

error
-

Specifies the validation or upload error if the file failed, if applicable.

file
File
-

Specifies the File object containing file data.

id
string
-

Specifies a unique identifier generated for each file in the upload queue.

name
string
-

Specifies the name of the file.

progress
number
0

Specifies the upload progress as a percentage from 0 to 100.

response
unknown
-

Specifies the server response after successful upload, if applicable.

size
number
-

Specifies the file size in bytes.

started
Date
-

Specifies the timestamp when the upload started, if applicable.

status
'idle'

Specifies the current status of the file in the upload lifecycle.

type
string
-

Specifies the MIME type of the file.