in reply to Setting max upload size/MIME types
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'};
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Setting max upload size/MIME types
by perleager (Pilgrim) on Mar 17, 2004 at 20:34 UTC |