On Wed, 26 Feb 2003, Tim Howell wrote:
> I'm writing a CGI::App right now that will accept a file upload. I'm
> trying to use uploadInfo->{Content-Type} from CGI to get the MIME type
> of a file, but it gives me an undefined hash reference error. Any
> ideas?
Tim,
FYI, All browsers won't send the MIME type. In particular, I've seen it
missing with Windows/IE and Mac/Opera 5.
To work around that, I have used the file extension as a secondary
check.
Mark
--
. . . . . . . . . . . . . . . . . . . . . . . . . . .
Mark Stosberg Principal Developer
suppressed Summersault, LLC
765-939-9301 ext 202 database driven websites
. . . . . http://www.summersault.com/ . . . . . . . .
---------------------------------------------------------------------
Web Archive: http://www.mail-archive.com/suppressed/
To unsubscribe, e-mail: suppressed
For additional commands, e-mail: suppressed
Mail converted by mhonarc 2.6.15
This archive provided courtesy of JSW4.NET, Internet Hosting Services for Small Business.