regarding "application/octet-stream"
ASP.NET
1
Posts
1
Posters
0
Views
1
Watching
-
i`ve used the following code while uploading a .csv file
if(pFileObject.PostedFile.ContentType.ToString() == "application/octet-stream") { throw new Exception("Please close the file you want to upload and then try again."); }
it works fine in my machine, but in other machines it works just opposite, i mean when the file is open it gives the error message but when it is closed it uploads successfully, but for other machines it works just opposite, and in other machines when uploading the .csv file it always returns content type as "application/octet-stream". good suggestions are welcome