I found the problem. Pls disregard my last email. Thanks for all your help.
Mariusz PS. My HTML was incomplete. It was missing: enctype="multipart/form-data"
From: Wiggins d'Anconia <[EMAIL PROTECTED]> To: mario kulka <[EMAIL PROTECTED]> CC: [EMAIL PROTECTED] Subject: Re: file's MIME type Date: Sat, 01 Feb 2003 16:24:58 -0500 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.Other than the 'use strict' ;-). It appears correct, what is the error that is given? "it doesn't work" is not terribly descriptive. What does your form code contain? What does the web server's log say? Have you tried printing something before printing the type, to prevent "Document contains no data" errors?
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;
http://danconia.org
_________________________________________________________________
Protect your PC - get McAfee.com VirusScan Online http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]