M
ME via .NET 247
I have a question about how System.Web.HttpPostedFile manages mime types using property ContentType in Windows.
When I upload a known "text/plain" file with no extension the property doesnt recognizes the type, showing a blank string or some weird characters. But if I put an extension like .pdf ou .exe to that same file the ContentType shows "text/plain".
Is that result expected?
When I upload a known "text/plain" file with no extension the property doesnt recognizes the type, showing a blank string or some weird characters. But if I put an extension like .pdf ou .exe to that same file the ContentType shows "text/plain".
Is that result expected?