When I upload CSV files to my development computer from my development
computer the content type is displayed as Output 1. However, if I
upload from another computer on my network using the EXACT same file,
I get Output 2. Can anyone tell me why that is? I just want to check
to see if the file being uploaded is of type CSV. I want this to work
from any computer on the network.
===========Code Snippet===========
HttpPostedFile file = UploadBox.PostedFile;
Response.Write(file.ContentType);
================================
============Output 1==============
application/vnd.ms-excel
================================
============Output 2==============
application/vnd.ms-excel
================================
Thank you,
King