File tree Expand file tree Collapse file tree 3 files changed +4
-3
lines changed Expand file tree Collapse file tree 3 files changed +4
-3
lines changed Original file line number Diff line number Diff line change 1
- /*global window, navigator, FileAPI */
1
+ /*global window, FileAPI */
2
2
3
3
( function ( api , window ) {
4
4
"use strict" ;
8
8
, FormData = window . FormData
9
9
, Form = function ( ) { this . items = [ ] ; }
10
10
, encodeURIComponent = window . encodeURIComponent
11
- , isPhantomJS = / p h a n t o m j s / i. test ( navigator . userAgent ) // @todo : fixed it
12
11
;
13
12
14
13
39
38
api . log ( 'FileAPI.Form.toHtmlData' ) ;
40
39
this . toHtmlData ( fn ) ;
41
40
}
42
- else if ( isPhantomJS || this . multipart || ! FormData ) {
41
+ else if ( ! api . formData || this . multipart || ! FormData ) {
43
42
api . log ( 'FileAPI.Form.toMultipartData' ) ;
44
43
this . toMultipartData ( fn ) ;
45
44
}
Original file line number Diff line number Diff line change 188
188
cors : false ,
189
189
html5 : true ,
190
190
media : false ,
191
+ formData : true ,
191
192
192
193
debug : false ,
193
194
pingUrl : false ,
Original file line number Diff line number Diff line change 11
11
html5 : true
12
12
, debug : false
13
13
, staticPath : '../dist/'
14
+ , formData : ! / p h a n t o m j s / i. test ( navigator . userAgent )
14
15
} ;
15
16
</ script >
16
17
You can’t perform that action at this time.
0 commit comments