|
[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]
|
[PLUG] CGI.pm file upload headers??
|
When uploading a file from a webform and retrieving it
with CGI.pm, is there a way to grab the headers? For
example:
$file = $cgiinput->param('file');
where $file is a file handle for the data, and it
contains the actual name of the file as a scalar, but
what if I want to grab say the mime type header?
Content-type: image/jpeg
I know that CGI.pm parses this information, but I dont
know what the actual official way of retrieving it is
if there is one, any one have any ideas?
Thanks!
Marc
__________________________________
Do you Yahoo!?
Free Pop-Up Blocker - Get it now
http://companion.yahoo.com/
___________________________________________________________________________
Philadelphia Linux Users Group -- http://www.phillylinux.org
Announcements - http://lists.phillylinux.org/mailman/listinfo/plug-announce
General Discussion -- http://lists.phillylinux.org/mailman/listinfo/plug
|
|