Skip to main content

FileUploadState

Parameters


isError required boolean

@returns

true if an error occurred

@depreacted

use !isSuccess or !!error instead


error required null | ErrorPayload

Provides details about the error


isUploading required boolean

Returns true when the file is being uploaded.


progress required null | number

Returns the progress of the upload, from 0 to 100. Returns null if the upload has not started yet.


isUploaded required boolean

Returns true when the file has been successfully uploaded.


id optional string

Returns the id of the file.


bucketId optional string

Returns the bucket id.


name optional string

Returns the name of the file.