Script for uploading files to a server
- From: Grega <grega@xxxxxxxxxxxxx>
- Date: Thu, 23 Oct 2008 11:16:46 -0700 (PDT)
Hi!
I use the following script for saving the uploaded file to the server.
It is basically driving me mad!
($q is initialised before)
my $sourceFilePath = $q->param('pdf');
my $fileHandle = $q->upload('pdf');
open (OUT, ">test.pdf") or die "$!";
binmode OUT;
while(<$fileHandle>){
print OUT;
}
close OUT;
What is the basic problem - $fileHandle seems to be empty while
$sourceFilePath holds the correct filename! I am stuck with this
problem for some time now :/
I have the current version of the CGI module.
Thank you in advance!
.
- Follow-Ups:
- Re: Script for uploading files to a server
- From: Joost Diepenmaat
- Re: Script for uploading files to a server
- Prev by Date: Re: Filehandle STDIN reopened as $fh1 only for output
- Next by Date: Re: Script for uploading files to a server
- Previous by thread: Fine tuning appearance of charts produced by Chart::Lines: is it possible?
- Next by thread: Re: Script for uploading files to a server
- Index(es):