HTML part:
<form name="form1" method="post" action="../../cgi-bin/b/s_le2.cgi">
music<input type="file" name="music_file">
</form>
Thanks for all your help.
M
From: [EMAIL PROTECTED]
To: "mario kulka" <[EMAIL PROTECTED]>
CC: [EMAIL PROTECTED]
Subject: Re: file's MIME type
Date: Mon, 3 Feb 2003 12:22:45 -0600
------------------------------------------------
On Mon, 03 Feb 2003 17:07:43 +0000, "mario kulka" <[EMAIL PROTECTED]> wrote:
> >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'; use strict; $file = param('music_file'); $info = uploadInfo ($file); $type = $info -> {'Content-Type'}; print "Content-type:text/html\n\n"; print $info; print $type; exit;
> >>
> >>
> >
What about checking for a 'cgi_error'. It appears that if something happens during upload this will be set and may provide more information. Again, what does your form request look like? Can you print the key/value pairs of the HASH reference returned in the $info so we can see what it has in it. How about turning on use strict just for the kicks, does it complain about anything?
http://danconia.org
_________________________________________________________________
MSN 8 with e-mail virus protection service: 2 months FREE* http://join.msn.com/?page=features/virus
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]