On 02/22/2007 12:58 PM, Zembower, Kevin wrote:
I'm having problems uploading a file with perl and CGI.pm. I have a form
that uses a script with CGI and MIME::Lite to email the contents of the
form and the file uploaded to an individual. I've written this section
so far:
[...]
$msg->attach(Type =>'BINARY',
Data =>$tmp_file_name,
Filename =>'AttachedFile',
Disposition =>'attachment');
[...]
"Data => $tmp_file_name" submits the temporary file's name as the data.
You probably want to specify $tmp_file_name as the path to the file instead:
Path => $tmp_file_name,
Re-read the first few examples in "perldoc MIME::Lite" again.
HTH
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
http://learn.perl.org/