Index: trunk/extensions/UploadWizard/resources/mw.UploadWizardUploadInterface.js |
— | — | @@ -284,7 +284,12 @@ |
285 | 285 | */ |
286 | 286 | getFilename: function() { |
287 | 287 | if( this.providedFile && ! this.$fileInputCtrl.get(0).value ) { // default to the fileinput if it's defined. |
288 | | - return this.providedFile.fileName; |
| 288 | + if( this.providedFile.fileName ) { |
| 289 | + return this.providedFile.fileName; |
| 290 | + } else { |
| 291 | + // this property has a different name in FF vs Chrome. |
| 292 | + return this.providedFile.name; |
| 293 | + } |
289 | 294 | } else { |
290 | 295 | return this.$fileInputCtrl.get(0).value; |
291 | 296 | } |