Search
Preparing search index...
The search index is not available
@planjs/utils
Options
All
Public
Public/Protected
All
Inherited
Externals
Menu
@planjs/utils
UploadRequestOption
Interface UploadRequestOption<T>
Type parameters
T =
any
Hierarchy
UploadRequestOption
Index
Properties
action
data
file
filename
headers
method
on
Abort
on
Error
on
Progress
on
Success
with
Credentials
Properties
action
action
:
string
Optional
data
data
:
object
file
file
:
File
Optional
filename
filename
:
string
Optional
headers
headers
:
UploadRequestHeader
method
method
:
UploadRequestMethod
Optional
on
Abort
on
Abort
:
(
event
:
UploadRequestError
|
ProgressEvent
<
EventTarget
>
)
=>
void
Type declaration
(
event
:
UploadRequestError
|
ProgressEvent
<
EventTarget
>
)
:
void
Parameters
event:
UploadRequestError
|
ProgressEvent
<
EventTarget
>
Returns
void
Optional
on
Error
on
Error
:
(
event
:
UploadRequestError
|
ProgressEvent
<
EventTarget
>
, body
?:
T
)
=>
void
Type declaration
(
event
:
UploadRequestError
|
ProgressEvent
<
EventTarget
>
, body
?:
T
)
:
void
Parameters
event:
UploadRequestError
|
ProgressEvent
<
EventTarget
>
Optional
body:
T
Returns
void
Optional
on
Progress
on
Progress
:
(
event
:
UploadProgressEvent
)
=>
void
Type declaration
(
event
:
UploadProgressEvent
)
:
void
Parameters
event:
UploadProgressEvent
Returns
void
Optional
on
Success
on
Success
:
(
body
:
T
, xhr
:
XMLHttpRequest
)
=>
void
Type declaration
(
body
:
T
, xhr
:
XMLHttpRequest
)
:
void
Parameters
body:
T
xhr:
XMLHttpRequest
Returns
void
Optional
with
Credentials
with
Credentials
:
boolean
Exports
Upload
Request
Option
action
data
file
filename
headers
method
on
Abort
on
Error
on
Progress
on
Success
with
Credentials