File tree Expand file tree Collapse file tree 2 files changed +15
-6
lines changed Expand file tree Collapse file tree 2 files changed +15
-6
lines changed Original file line number Diff line number Diff line change 1
1
<!DOCTYPE HTML>
2
2
<!--
3
3
/*
4
- * jQuery File Upload Plugin Basic Plus Demo 1.1.1
4
+ * jQuery File Upload Plugin Basic Plus Demo 1.1.2
5
5
* https://github.com/blueimp/jQuery-File-Upload
6
6
*
7
7
* Copyright 2013, Sebastian Tschan
@@ -151,8 +151,12 @@ <h3>Demo Notes</h3>
151
151
autoUpload : false ,
152
152
acceptFileTypes : / ( \. | \/ ) ( g i f | j p e ? g | p n g ) $ / i,
153
153
maxFileSize : 5000000 , // 5 MB
154
- loadImageMaxFileSize : 15000000 , // 15MB
155
- disableImageResize : false ,
154
+ loadImageMaxFileSize : 15000000 , // 10MB
155
+ // Enable image resizing, except for Android and Opera,
156
+ // which actually support image resizing, but fail to
157
+ // send Blob objects via XHR requests:
158
+ disableImageResize : / A n d r o i d (? ! .* C h r o m e ) | O p e r a /
159
+ . test ( window . navigator && navigator . userAgent ) ,
156
160
previewMaxWidth : 100 ,
157
161
previewMaxHeight : 100 ,
158
162
previewCrop : true
Original file line number Diff line number Diff line change 1
1
/*
2
- * jQuery File Upload Plugin Angular JS Example 1.0.2
2
+ * jQuery File Upload Plugin Angular JS Example 1.0.3
3
3
* https://github.com/blueimp/jQuery-File-Upload
4
4
*
5
5
* Copyright 2013, Sebastian Tschan
9
9
* http://www.opensource.org/licenses/MIT
10
10
*/
11
11
12
- /*global window, angular */
12
+ /*jslint regexp: true */
13
+ /*global window, angular, navigator */
13
14
14
15
( function ( ) {
15
16
'use strict' ;
28
29
// Demo settings:
29
30
delete $httpProvider . defaults . headers . common [ 'X-Requested-With' ] ;
30
31
angular . extend ( fileUploadProvider . defaults , {
31
- disableImageResize : false ,
32
+ // Enable image resizing, except for Android and Opera,
33
+ // which actually support image resizing, but fail to
34
+ // send Blob objects via XHR requests:
35
+ disableImageResize : / A n d r o i d (? ! .* C h r o m e ) | O p e r a /
36
+ . test ( window . navigator && navigator . userAgent ) ,
32
37
maxFileSize : 5000000 ,
33
38
acceptFileTypes : / ( \. | \/ ) ( g i f | j p e ? g | p n g ) $ / i
34
39
} ) ;
You can’t perform that action at this time.
0 commit comments