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 88 *
99 * @flow
1010 */
11- /* global XMLHttpRequest, File */
11+ /* global XMLHttpRequest, Blob */
1212import CoreManager from './CoreManager' ;
1313import type { FullOptions } from './RESTController' ;
1414
@@ -19,10 +19,10 @@ if (typeof XMLHttpRequest !== 'undefined') {
1919
2020type Base64 = { base64 : string } ;
2121type Uri = { uri : string } ;
22- type FileData = Array < number > | Base64 | File | Uri ;
22+ type FileData = Array < number > | Base64 | Blob | Uri ;
2323export type FileSource = {
2424 format : 'file' ;
25- file: File ;
25+ file: Blob ;
2626 type: string
2727} | {
2828 format: 'base64' ;
@@ -109,7 +109,7 @@ class ParseFile {
109109 base64 : this . _data ,
110110 type : specifiedType
111111 } ;
112- } else if ( typeof File !== 'undefined' && data instanceof File ) {
112+ } else if ( typeof Blob !== 'undefined' && data instanceof Blob ) {
113113 this . _source = {
114114 format : 'file' ,
115115 file : data ,
You can’t perform that action at this time.
0 commit comments