To get the MIME type that the browser report, use the uploadInfo mehod.my $error = $cgi->error(); if ($error) { die $error; }
my $file = $cgi->param('upload'); my $content_type = $cgi->uploadInfo($file)->{'Content-Type'};
In reply to Re: Setting max upload size/MIME types
by iburrell
in thread Setting max upload size/MIME types
by perleager
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |