Index: trunk/extensions/UploadWizard/resources/mw.UploadWizard.js |
— | — | @@ -556,8 +556,8 @@ |
557 | 557 | */ |
558 | 558 | updateFilename: function() { |
559 | 559 | var _this = this; |
560 | | - // TODO get basename of file; Chrome does this C:\fakepath\something which is highly irritating |
561 | 560 | var path = _this.$fileInputCtrl.val(); |
| 561 | + // get basename of file; some browsers do this C:\fakepath\something |
562 | 562 | path = path.replace(/\w:.*\\(.*)$/,'$1'); |
563 | 563 | |
564 | 564 | // visible filename |