Index: trunk/extensions/UploadWizard/resources/mw.UploadWizard.js |
— | — | @@ -558,6 +558,7 @@ |
559 | 559 | var _this = this; |
560 | 560 | // TODO get basename of file; Chrome does this C:\fakepath\something which is highly irritating |
561 | 561 | var path = _this.$fileInputCtrl.val(); |
| 562 | + path = path.replace(/\w:.*\\(.*)$/,'$1'); |
562 | 563 | |
563 | 564 | // visible filename |
564 | 565 | $j( _this.form ).find( '.mwe-upwiz-visible-file-filename-text' ).html( path ); |