Index: trunk/extensions/UploadWizard/resources/mw.FirefoggHandler.js |
— | — | @@ -88,7 +88,9 @@ |
89 | 89 | .val( _this.getFogg().sourceFilename ) |
90 | 90 | //.trigger('change'); |
91 | 91 | // note the change trigger does not work because we replace the target: |
92 | | - _this.upload.ui.fileChanged(); |
| 92 | + var title = _this.getTransport().getFileName().replace( /:/g, '_' ); |
| 93 | + _this.upload.title = new mw.Title( title , 'file' ); |
| 94 | + _this.upload.ui.fileChangedOk(); |
93 | 95 | } |
94 | 96 | } ); |
95 | 97 | }, |
Index: trunk/extensions/UploadWizard/resources/mw.FirefoggTransport.js |
— | — | @@ -98,7 +98,8 @@ |
99 | 99 | return this.fogg.sourceFilename.split('.').slice(0,-1).join('.') + '.oga'; |
100 | 100 | } |
101 | 101 | if( this.isSourceVideo() ){ |
102 | | - return this.fogg.sourceFilename.split('.').slice(0,-1).join('.') + '.webm'; |
| 102 | + var ext = this.getEncodeExt(); |
| 103 | + return this.fogg.sourceFilename.split('.').slice(0,-1).join('.') + '.' + ext; |
103 | 104 | } |
104 | 105 | } |
105 | 106 | }, |