Re: File upload question

2004-07-27 Thread Sean Davis
Bob, Thanks. That was the issue. Sean On Jul 27, 2004, at 1:31 PM, Bob Showalter wrote: Sean Davis wrote: I am trying to write a toy script that will ask for an upload file and then echo that file back to the user on the browser. However, if I do this all in one script like the following, I get n

RE: File upload question

2004-07-27 Thread Bob Showalter
Sean Davis wrote: > I am trying to write a toy script that will ask for an upload file and > then echo that file back to the user on the browser. However, if I do > this all in one script like the following, I get no echoed file. > However, if I instead use a separate HTML form and submit to my >

Re: File upload question

2004-07-27 Thread Wiggins d Anconia
> On Tue, Jul 27, 2004 at 12:37:11PM -0400, Sean Davis wrote: > > if ($q->param('upload_file')) { > > my $fh=$q->upload('upload_file'); >^^ > > Perhaps that should be param, not upload. I'm not familiar with an > upload method in the CGI module. > > Please check the docs,

Re: File upload question

2004-07-27 Thread T. Raymond
Hi Sean, I'm not sure but try taking out "$q ->" in front of your print statements. i.e.: print header(); my $value=$q->param('upload_file'); Also, in the above you set the value of my $value but then do not use it elsewhere in your script. In the below you end up using the value of my $value.

Re: File upload question

2004-07-27 Thread William McKee
On Tue, Jul 27, 2004 at 12:37:11PM -0400, Sean Davis wrote: > if ($q->param('upload_file')) { > my $fh=$q->upload('upload_file'); ^^ Perhaps that should be param, not upload. I'm not familiar with an upload method in the CGI module. William -- Knowmad Services Inc. http:/

File upload question

2004-07-27 Thread Sean Davis
I am trying to write a toy script that will ask for an upload file and then echo that file back to the user on the browser. However, if I do this all in one script like the following, I get no echoed file. However, if I instead use a separate HTML form and submit to my script, it works fine.

Re: File upload question

2002-07-29 Thread zentara
On Sun, 28 Jul 2002 00:51:06 -0700 (PDT), [EMAIL PROTECTED] (Nate) wrote: >i'm writing a website that requires an upload for pictures. I have figured out how to >get the image, upload it to the correct dirctory and save successfully, but the >problem comes with the fact that i have to specify t

Re: File upload question

2002-07-28 Thread Janek Schleicher
Nate wrote at Sun, 28 Jul 2002 09:51:06 +0200: > i'm writing a website that requires an upload for pictures. I have figured out how >to get the > image, upload it to the correct dirctory and save successfully, but the problem >comes with the > fact that i have to specify the filename. i want to

File upload question

2002-07-28 Thread Nate
..grey { background-color: #cc; }Hello. I don't know how dumb this is going to sound, but here goes: i'm writing a website that requires an upload for pictures. I have figured out how to get the image, upload it to the correct dirctory and save successfully, but the problem comes with the