File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change 8
8
*
9
9
* @flow
10
10
*/
11
- /* global XMLHttpRequest, File */
11
+ /* global XMLHttpRequest, Blob */
12
12
import CoreManager from './CoreManager' ;
13
13
import type { FullOptions } from './RESTController' ;
14
14
@@ -19,10 +19,10 @@ if (typeof XMLHttpRequest !== 'undefined') {
19
19
20
20
type Base64 = { base64 : string } ;
21
21
type Uri = { uri : string } ;
22
- type FileData = Array < number > | Base64 | File | Uri ;
22
+ type FileData = Array < number > | Base64 | Blob | Uri ;
23
23
export type FileSource = {
24
24
format : 'file' ;
25
- file: File ;
25
+ file: Blob ;
26
26
type: string
27
27
} | {
28
28
format: 'base64' ;
@@ -109,7 +109,7 @@ class ParseFile {
109
109
base64 : this . _data ,
110
110
type : specifiedType
111
111
} ;
112
- } else if ( typeof File !== 'undefined' && data instanceof File ) {
112
+ } else if ( typeof Blob !== 'undefined' && data instanceof Blob ) {
113
113
this . _source = {
114
114
format : 'file' ,
115
115
file : data ,
You can’t perform that action at this time.
0 commit comments