Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW

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?

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 lurking in the Monastery: (4)
As of 2015-11-27 03:30 GMT
Find Nodes?
    Voting Booth?

    What would be the most significant thing to happen if a rope (or wire) tied the Earth and the Moon together?

    Results (717 votes), past polls