Hi Helmut,

tobago utilises commons-fileUpload and for the contentType
FileItem.getContentType():
http://jakarta.apache.org/commons/fileupload/apidocs/org/apache/commons/fileupload/FileItem.html#getContentType()

from this doc i think the uploading browser must set the contenttype
properly for this to work.


Regards,
   Volker

2007/5/24, Helmut Swaczinna <[EMAIL PROTECTED]>:
Hi,

what mechanism/tool uses tc:validateFileItem to determine the MIME-Type of
the uploaded file to
check the specified contentType? I want to restrict the file upload to Excel
files but it doesn't recognize
the upload file as an Excel file.

Regards
Helmut



Reply via email to