Re: Uploaded File Empty but in correct folder with correct name
- From: Samwyse <samwyse@xxxxxxxxx>
- Date: Tue, 28 Feb 2006 13:19:49 GMT
Gunnar Hjalmarsson wrote:
Samwyse wrote:
'binmode' and 'read' both want file handles as their only/first parameter; what you have is the name of a file.
From "perldoc CGI":
"When the form is processed, you can retrieve the entered filename by calling param():
$filename = $query->param('uploaded_file');
...
The filename returned is also a file handle. You can read the contents of the file using standard Perl file reading calls:"
Well, I *did* say that it had been a while since I did any CGI work.
Next time a CGI question comes in, I'll just keep my mouth shut.
.
- References:
- Uploaded File Empty but in correct folder with correct name
- From: froil
- Re: Uploaded File Empty but in correct folder with correct name
- From: Samwyse
- Re: Uploaded File Empty but in correct folder with correct name
- From: Gunnar Hjalmarsson
- Uploaded File Empty but in correct folder with correct name
- Prev by Date: Regexp - alternate match and grouping
- Next by Date: Re: Regexp - alternate match and grouping
- Previous by thread: Re: Uploaded File Empty but in correct folder with correct name
- Next by thread: Re: Uploaded File Empty but in correct folder with correct name
- Index(es):