SlingshotReference
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
Prop | Type | Default |
---|---|---|
upload | (files: File[]) => Promise<void> | - |
getFiles | () => SlingshotFile[] | - |
status | idle | uploading | done | failed | aborted | - |
progress | number | - |
SlingshotFile
Prop | Type | Default |
---|---|---|
key | string | - |
url | string | - |
name | string | - |
type | string | - |
size | number | - |
data | File | - |
progress | number | - |
error | string | - |
status | authorizing | accepted | rejected | uploading | done | failed | aborted | - |