file upload with accept

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hi
I understand we can limit the file type / extension the user can choose from
in doing file upload with the "accept" property, but what are the values for
csv and text file? (the example is only "image/*")!

TIA

--
 
..CSV: application/vnd.excel
..TXT: text/plain

You can always look for the values using "regedit.exe" and search through
"HKEY_CLASS_ROOT\(file ext)\Content Type".
 
I do not see the "Content Type" for .csv (I am using win2000p)

Lau Lei Cheong said:
.CSV: application/vnd.excel
.TXT: text/plain

You can always look for the values using "regedit.exe" and search through
"HKEY_CLASS_ROOT\(file ext)\Content Type".
 
I see... this entry has been added by MS Excel.
If your PC does not have MSOffice installed, you may not be able to see it.

I do not see the "Content Type" for .csv (I am using win2000p)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top