File tree 1 file changed +11
-3
lines changed
1 file changed +11
-3
lines changed Original file line number Diff line number Diff line change 1
1
/*
2
- * jQuery File Upload Plugin 5.17.3
2
+ * jQuery File Upload Plugin 5.17.4
3
3
* https://github.com/blueimp/jQuery-File-Upload
4
4
*
5
5
* Copyright 2010, Sebastian Tschan
803
803
} ,
804
804
dirReader ;
805
805
path = path || '' ;
806
- if ( entry . isFile ) {
806
+ if ( entry . _file ) {
807
+ // Workaround for Chrome bug #149735
808
+ entry . _file . relativePath = path ;
809
+ dfd . resolve ( entry . _file ) ;
810
+ } else if ( entry . isFile ) {
807
811
entry . file ( function ( file ) {
808
812
file . relativePath = path ;
809
813
dfd . resolve ( file ) ;
848
852
items [ 0 ] . getAsEntry ) ) {
849
853
return this . _handleFileTreeEntries (
850
854
$ . map ( items , function ( item ) {
855
+ var entry ;
851
856
if ( item . webkitGetAsEntry ) {
852
- return item . webkitGetAsEntry ( ) ;
857
+ entry = item . webkitGetAsEntry ( ) ;
858
+ // Workaround for Chrome bug #149735:
859
+ entry . _file = item . getAsFile ( ) ;
860
+ return entry ;
853
861
}
854
862
return item . getAsEntry ( ) ;
855
863
} )
You can’t perform that action at this time.
0 commit comments