|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
Stay one step ahead of the competition. Evaluate and give feedback
on some of the hottest web development tools on the market today.
Make your opinion heard! Click
Here
|
|
#1
|
|||
|
|||
|
I have some script that uploads files to my server.
Is there any way to limit file size to be uploaded ? I don't want my users to be able to upload files larger then 3 MB. |
|
#2
|
|||
|
|||
|
If your script doesn't check for file size, you should then get another one. Please go to: http://www.scriptsearch.com/
There are plenty of upload scripts that can limit the upload size. |
|
#3
|
|||
|
|||
|
If it's using the CGI perl module.
$CGI::POST_MAX If set to a non-negative integer, this variable puts a ceiling on the size of POSTings, in bytes. If CGI.pm 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. |
![]() |
| Viewing: Dev Shed Forums > Programming Languages > Perl Programming > Limit file size to be uploaded ? |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|