Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
PerlMonks  

Re: uploading a image file

by archen (Pilgrim)
on Oct 20, 2005 at 15:53 UTC ( #501710=note: print w/ replies, xml ) Need Help??


in reply to uploading a image file

Okay, this is going to sound stupid, but if no one else comes up with a solution I would suggest that you mess with the code using alternative methods to achieve the same results. Personally I use CGI::Simple, but I've had even more problems with that module for some unknown reason than I've had with strait CGI;

For some reason on occasion I have severe problems with the "upload" routine of CGI. Instead I sometimes use the older method.
my $fh = $cgi->param('file'); open FILE, ">whatever"; print FILE while (<$fh>);
Reading the file in blocks as you have it is a better solution, but this is pretty tried and true for getting it to work initally. CGI::Simple also provides:
my $st = $cgi->upload( $cgi->param('file'), ">whatever");


Comment on Re: uploading a image file
Select or Download Code

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://501710]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others exploiting the Monastery: (5)
As of 2014-12-21 00:11 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Is guessing a good strategy for surviving in the IT business?





    Results (99 votes), past polls