Saas.js logo
File Upload/Reference

React

Reference for the FileUpload component.

All props of the Ark UI FileUpload component are supported.

FileUpload.Context

The FileUpload.Context component receives an slingshot object that contains the Slingshot client API.

Slingshot client API

PropTypeDefault
upload?
(files: File[]) => Promise<void>
-
getFiles?
() => SlingshotFile[]
-
status?
idle | uploading | done | failed | aborted
-
progress?
number
-

SlingshotFile

PropTypeDefault
key?
string
-
url?
string
-
name?
string
-
type?
string
-
size?
number
-
data?
File
-
progress?
number
-
error?
string
-
status?
authorizing | accepted | rejected | uploading | done | failed | aborted
-