, April 06, 2006 5:45 AM
To: beginners@perl.org
Subject: Can any one tell me a better way to upload a file from the HTML
form to a location in my home directorrt.
I tried many ways, Though I am seeing the file. the SIZE IS 0.
I tried out these ways
First One
=
my $upload_file= $q
Anish Kumar K. wrote:
I tried many ways, Though I am seeing the file. the SIZE IS 0.
I tried out these ways
use the upload() info in CGI.pm's POD, be sure to do it befpre any
headers are output :)
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTEC
Anish Kumar K. schreef:
> I tried many ways, Though I am seeing the file. the SIZE IS 0.
Maybe this helps:
http://perlmeme.org/tutorials/cgi_upload.html
--
Affijn, Ruud
"Gewoon is een tijger."
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
I tried many ways, Though I am seeing the file. the SIZE IS 0.
I tried out these ways
First One
=
my $upload_file= $q->param('upload_file'); # This is the description file which
is being uploaded
if ($upload_file)
{
my $outfile="/home/anish/testing.doc";
open(OUTFILE,">$outf
dea, check the file size yourself before writing and doing the while on a
humungousw file!
Thanks for the idea!
Dan
> -rm-
> - Original Message -
> From: "Dan Muey" <[EMAIL PROTECTED]>
> To: "Ramon Chavez" <[EMAIL PROTECTED]>; <
---
From: "Dan Muey" <[EMAIL PROTECTED]>
To: "Ramon Chavez" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
Sent: Tuesday, July 08, 2003 2:14 PM
Subject: RE: Better way to upload??
> Hi all.
Howdy
>
> I need some advice on this.
>
> I'm w
> Hi all.
Howdy
>
> I need some advice on this.
>
> I'm writing a script for uploading a file ($file). Saving it
> as $file_path/$name
>
> The way I'm doing this right now is (after checking the file
> extensión and assuring every character is only a letter or an
> underscore):
>
> -My way
Hi all.
I need some advice on this.
I'm writing a script for uploading a file ($file). Saving it as
$file_path/$name
The way I'm doing this right now is (after checking the file extensión and
assuring every character is only a letter or an underscore):
-My way---