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
ut writing 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
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 examp
> ""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 - Stone
with my
problems.
-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
om: Mug [mailto:[EMAIL 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_nam
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 m
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 upload
rying.
-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.
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(Typ
Hello.
CGI.pm module can restrict the size of the file being uploaded.
You canb use something like this:
my $max_size = 512000; #For 500kb limit
$CGI::POST_MAX=$max_size;
If the file size is bigger than that, it stop the process and returns an
error message.
But, thinking about it now, it's b
Hello.
CGI.pm module can restrict the size of the file being uploaded.
You canb use something like this:
my $max_size = 512000; #For 500kb limit
$CGI::POST_MAX=$max_size;
If the file size is bigger than that, it stop the process and returns an
error message.
But, thinking about it now, it's b
> Hello everyone.
Howdy
>
> I'm trying to write a script for Uploading pictures.
>
> Can you give me some advice??
> What module to look at first??
use CGI;
See the documentation at cpan.
Things I've found are ::
- upload the file before any headers are printed
- don't forget to make your
The CGI module can be used for this. Here is a short example which might
(or might not) help. Also check out the perldoc for CGI, or better yet take
a look at the "Official Guide to Programming with CGI.pm", a book published
by Wiley.
# the Perl code
use CGI qw(:standard);
my $file = $R
14 matches
Mail list logo