D
darrel
I'm creating a file upload tool, and want to allow only DOC, XLS, PDF, RTF
or TXT files. I am using this to check:
if (contentType = "application/msword") _
or (contentType = "application/rtf") _
or (contentType = "application/ms-excel") _
or (contentType = "application/pdf") _
or (contentType = "application/txt") then
However, I'm not sure if that's the proper way...namly the 'msword' vs.
'ms-excel' (the two examples I found online).
Does the above look correct?
-Darrel
or TXT files. I am using this to check:
if (contentType = "application/msword") _
or (contentType = "application/rtf") _
or (contentType = "application/ms-excel") _
or (contentType = "application/pdf") _
or (contentType = "application/txt") then
However, I'm not sure if that's the proper way...namly the 'msword' vs.
'ms-excel' (the two examples I found online).
Does the above look correct?
-Darrel