------------------------------------------------
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';
> >>
> >>$file = param('music_file');
> >>$info = uploadInfo ($file);
> >>$type = $info -> {'Content-Type'};
> >>
> >>print "Content-type:text/html\n\n";
> >>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
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]