On Sat, 01 Feb 2003 06:58:16 +0000, Mario Kulka wrote:
> I found the following in a book when trying to find out the file's MIME
> type, but it doesn't work. Am I missing something obvious? Thanks. M.
> code:
>
> #!/usr/bin/perl -W
> use CGI ':standard';
>
> $file = param('music_file');
> $info = uploadInfo ($file);
> $type = $info -> {'Content-Type'};
>
> print "Content-type:text/html\n\n";
^^
I'm not a cgi expert,
but I believe that there must be a blank after the colon :
print "Content-type: text/html\n\n";
I prefer to use normally the power of the CGI module:
print header;
Best Wishes,
Janek
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]