Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical

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");

Log In?

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

How do I use this? | Other CB clients
Other Users?
Others browsing the Monastery: (10)
As of 2016-10-21 13:25 GMT
Find Nodes?
    Voting Booth?
    How many different varieties (color, size, etc) of socks do you have in your sock drawer?

    Results (289 votes). Check out past polls.