react-activestorage
Preparing search index...
useActiveStorage
Function useActiveStorage
useActiveStorage
(
file
?:
File
,
callback
?:
(
_
:
{
blob
?:
ActiveStorageBlob
;
error
?:
Error
}
)
=>
void
,
csrf
?:
CSRF
,
)
:
{
progress
:
undefined
|
ActiveStorageProgress
;
uploading
:
boolean
}
Parameters
Optional
file
:
File
Optional
callback
:
(
_
:
{
blob
?:
ActiveStorageBlob
;
error
?:
Error
}
)
=>
void
Optional
csrf
:
CSRF
Returns
{
progress
:
undefined
|
ActiveStorageProgress
;
uploading
:
boolean
}
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
react-activestorage
Loading...