Re: Uploaded File Empty but in correct folder with correct name



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.
.