Index: trunk/extensions/UploadWizard/resources/mw.UploadWizardUploadInterface.js |
— | — | @@ -19,7 +19,7 @@ |
20 | 20 | _this.previewLoaded = false; |
21 | 21 | |
22 | 22 | _this.$fileInputCtrl = $j( '<input size="1" class="mwe-upwiz-file-input" name="file" type="file"/>' ); |
23 | | - if( mw.UploadWizard.config['enableMultiFileSelect'] ) { |
| 23 | + if( mw.fileApi.isAvailable() && mw.UploadWizard.config['enableMultiFileSelect'] ) { |
24 | 24 | _this.$fileInputCtrl.attr( 'multiple', '1' ); |
25 | 25 | } |
26 | 26 | |
Index: trunk/extensions/UploadWizard/resources/mw.fileApi.js |
— | — | @@ -32,8 +32,9 @@ |
33 | 33 | * @todo is there a way to check this instead of hardcoding browsers and version? |
34 | 34 | */ |
35 | 35 | isSliceAvailable: function() { |
36 | | - return ($j.browser.mozilla && $j.browser.version >= '5.0') || |
37 | | - ($j.browser.webkit && $j.browser.version >= '534.28'); |
| 36 | + return mw.fileApi.isAvailable() && |
| 37 | + ( ($j.browser.mozilla && $j.browser.version >= '5.0') || |
| 38 | + ($j.browser.webkit && $j.browser.version >= '534.28') ); |
38 | 39 | } |
39 | 40 | |
40 | 41 | |