How can I check the MIME type of an uploaded file using Perl CGI?

Posted by FOOM on Stack Overflow See other posts from Stack Overflow or by FOOM
Published on 2010-04-28T12:24:02Z Indexed on 2010/04/28 16:33 UTC
Read the original article Hit count: 218

Filed under:
|
|
|

I'm trying to get the MIME type of an <input type="file" /> element using Perl, but without actually examining the contents of the file itself, In other words, just using the HTTP headers.

I have only been able to get the "multipart/form-type" Content-Type value, but my understanding is that each element will get its own MIME Type?

How can I see the sub-MIME types using Perl?

© Stack Overflow or respective owner

Related posts about perl

Related posts about cgi