You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
3.`xhr`: xhr header, only for modern browsers which support AJAX upload. since
92
-
2.4.0
93
-
91
+
3.`xhr`: xhr header, only for modern browsers which support AJAX upload. since 2.4.0
94
92
95
93
### customRequest
96
94
97
95
Allows for advanced customization by overriding default behavior in AjaxUploader. Provide your own XMLHttpRequest calls to interface with custom backend processes or interact with AWS S3 service through the aws-sdk-js package.
98
96
99
97
customRequest callback is passed an object with:
100
98
101
-
*`onProgress: (event: { percent: number }): void`
102
-
*`onError: (event: Error, body?: Object): void`
103
-
*`onSuccess: (body: Object): void`
104
-
*`data: Object`
105
-
*`filename: String`
106
-
*`file: File`
107
-
*`withCredentials: Boolean`
108
-
*`action: String`
109
-
*`headers: Object`
110
-
99
+
-`onProgress: (event: { percent: number }): void`
100
+
-`onError: (event: Error, body?: Object): void`
101
+
-`onSuccess: (body: Object): void`
102
+
-`data: Object`
103
+
-`filename: String`
104
+
-`file: File`
105
+
-`withCredentials: Boolean`
106
+
-`action: String`
107
+
-`headers: Object`
111
108
112
109
### methods
113
110
114
111
abort(file?: File) => void: abort the uploading file
0 commit comments