how to limit each file's size when uploading from a form with severalfiles.

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 ...


Go Back   Usenet Forums > Web Server and Related Forums > Linux Web Servers

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 11-27-2007
AthenaLightenedMyPath@gmail.com
 
Posts: n/a
Default how to limit each file's size when uploading from a form with severalfiles.

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.
  #2 (permalink)  
Old 11-27-2007
C.
 
Posts: n/a
Default Re: how to limit each file's size when uploading from a form withseveral files.

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.
  #3 (permalink)  
Old 11-28-2007
AthenaLightenedMyPath@gmail.com
 
Posts: n/a
Default Re: how to limit each file's size when uploading from a form withseveral files.

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

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 09:13 AM.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0