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

Re: File Uploading

by mandog (Curate)
on Oct 15, 2003 at 22:23 UTC ( #299574=note: print w/ replies, xml ) Need Help??

in reply to File Uploading

You might add some more error checking for example: use strict;


open (UPLOADFILE, ">$dirpath/$filename") or die "bad open $dirpath/$filename\n $!";

You might look at CGI::POST_MAX Your system admin may have set it in

perldoc CGI # skip some stuff $CGI::POST_MAX If set to a non-negative integer, this variable puts a ceiling on the size of POSTings, in bytes. If detects a POST that is greater than the ceiling, it will immediately exit with an error message. This value will affect both ordinary POSTs and multipart POSTs, meaning that it limits the maximum size of file uploads as well. You should set this to a reasonably high value, such as 1 megabyte.

Comment on Re: File Uploading
Select or Download Code

Log In?

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

How do I use this? | Other CB clients
Other Users?
Others browsing the Monastery: (6)
As of 2015-11-29 16:24 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 (751 votes), past polls