Re: file's MIME type

2003-02-04 Thread Janek Schleicher
On Sat, 01 Feb 2003 06:58:16 +, 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

Re: file's MIME type

2003-02-04 Thread mario kulka
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 +, mario kulka [EMAIL PROTECTED] wrote

Re: file's MIME type

2003-02-04 Thread mario kulka
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

Re: file's MIME type

2003-02-03 Thread mario kulka
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

Re: file's MIME type

2003-02-03 Thread wiggins
On Mon, 03 Feb 2003 17:07:43 +, 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

file's MIME type

2003-01-31 Thread mario kulka
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