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.
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.