Quantcast
Channel: ASPNETWebStack Issue Tracker Rss Feed
Viewing all articles
Browse latest Browse all 7215

Created Issue: HttpPostedFileBaseModelBinder and browsers that send full file path [835]

$
0
0
Certain browsers (IE) send the full file path of a file from an <input type="file"/>.

It seems this behaviour was turned off in IE8 onwards (but still remains as an option to turn back on through IE optons).

Seeing as a HttpPostedFileBase has the property "FileName" should the model binder not try its best to populate this with the actual file name?

I'm suggesting perhaps changing the HttpPostedFileBaseModelBinder to at some point do a Path.GetFileName(theFile.FileName) in order to workaround this behavour and not be so misleading as to what the FileName property will have.

Viewing all articles
Browse latest Browse all 7215

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>