This is a discussion on how to limit each file's size when uploading from a form with severalfiles. within the Linux Web Servers forums, part of the Web Server and Related Forums category; hi,guys. i am using apache 2.2 .i want to let the browser know that one of the files ...
|
|||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
hi,guys.
i am using apache 2.2 .i want to let the browser know that one of the files is too large when the file size exceeds 5M. The "LimitRequestBody" directive does not make sense. because it check the total request body's size instead of each file's,right? Need help now. regards. |
|
|||
|
On 27 Nov, 07:00, AthenaLightenedMyP...@gmail.com wrote:
> hi,guys. > > i am using apache 2.2 .i want to let the browser know that one of > the files is too large when the file size exceeds 5M. > > The "LimitRequestBody" directive does not make sense. because it > check the total request body's size instead of each file's,right? > > Need help now. > > regards. AFAIK this is not possible - don't allow multiple files per post or do some validation on the submission. If you are uploading to a PHP page, adding a hidden field named 'MAX_FILE_SIZE' preceding an input type of file may help but is relatively simple to trick (NB this is a PHP thing not a HTTP/HTML thing). C. |
|
|||
|
On Nov 27, 8:26 pm, "C." <colin.mckin...@gmail.com> wrote:
> On 27 Nov, 07:00, AthenaLightenedMyP...@gmail.com wrote: > > > hi,guys. > > > i am using apache 2.2 .i want to let the browser know that one of > > the files is too large when the file size exceeds 5M. > > > The "LimitRequestBody" directive does not make sense. because it > > check the total request body's size instead of each file's,right? > > > Need help now. > > > regards. > > AFAIK this is not possible - don't allow multiple files per post or do > some validation on the submission. If you are uploading to a PHP page, > adding a hidden field named 'MAX_FILE_SIZE' preceding an input type of > file may help but is relatively simple to trick (NB this is a PHP > thing not a HTTP/HTML thing). > > C. thanks. |
| Thread Tools | |
| Display Modes | |
|
|