Re: File uploading using CGI

2007-02-23 Thread Mug
Zembower, Kevin wrote: open(TMP_FILE, $tmp_file_name) or die Can't open temp upload file $tmp_file_name\n; Do you want binmode() here? I see you'll use BINARY below. my $fh = $query-upload('Material_File'); while ($fh) { print TMP_FILE; } # while there's more file to

RE: File uploading using CGI

2007-02-23 Thread Zembower, Kevin
PROTECTED] Sent: Friday, February 23, 2007 8:35 AM To: Zembower, Kevin Cc: beginners@perl.org Subject: Re: File uploading using CGI Zembower, Kevin wrote: open(TMP_FILE, $tmp_file_name) or die Can't open temp upload file $tmp_file_name\n; Do you want binmode() here? I see you'll use

RE: File uploading using CGI

2007-02-23 Thread Zembower, Kevin
-Original Message- From: Mumia W. [mailto:[EMAIL PROTECTED] Sent: Thursday, February 22, 2007 9:59 PM To: Beginners List Subject: Re: File uploading using CGI On 02/22/2007 02:40 PM, Zembower, Kevin wrote: -Original Message- From: Mumia W. [mailto:[EMAIL PROTECTED] Sent: Thursday, February

Re: File uploading using CGI

2007-02-23 Thread Randal L. Schwartz
Zembower, == Zembower, Kevin [EMAIL PROTECTED] writes: Zembower, I'm having problems uploading a file with perl and CGI.pm. beginners-cgi@perl.org was specifically set up for this type of problem. Just FYI, because you were also already helped here. -- Randal L. Schwartz - Stonehenge

Re: File uploading using CGI

2007-02-23 Thread Mumia W.
On 02/23/2007 09:06 AM, Zembower, Kevin wrote: Mumia, I don't think the problem is in sending the file out. When the file is recorded on /tmp/, its size is zero. The files I'm uploading are at least 1KB. Something's wrong with reading the file from the uploaded filehandle, I believe. Your

RE: File uploading using CGI

2007-02-23 Thread Zembower, Kevin
to a file, which is very helpful. -Kevin -Original Message- From: Mumia W. [mailto:[EMAIL PROTECTED] Sent: Friday, February 23, 2007 12:53 PM To: Beginners List Subject: Re: File uploading using CGI On 02/23/2007 09:06 AM, Zembower, Kevin wrote: Mumia, I don't think the problem is in sending

Re: File uploading using CGI

2007-02-23 Thread Mumia W.
On 02/23/2007 12:36 PM, Zembower, Kevin wrote: I owe this list, and Mumia in particular, an apology. Apparently, my script was working yesterday when I was asking for help. I'm guessing that at some point, I made a change to the HTML input form and forgot to refresh the copy in my browser. For

Re: File uploading using CGI

2007-02-22 Thread Mumia W.
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: [...]

RE: File uploading using CGI

2007-02-22 Thread Zembower, Kevin
. -Kevin -Original Message- From: Mumia W. [mailto:[EMAIL PROTECTED] Sent: Thursday, February 22, 2007 3:27 PM To: Beginners List Subject: Re: File uploading using CGI 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

Re: File uploading using CGI

2007-02-22 Thread Mumia W.
On 02/22/2007 02:40 PM, Zembower, Kevin wrote: -Original Message- From: Mumia W. [mailto:[EMAIL PROTECTED] Sent: Thursday, February 22, 2007 3:27 PM To: Beginners List Subject: Re: File uploading using CGI On 02/22/2007 12:58 PM, Zembower, Kevin wrote: I'm having problems uploading