With Apache you can set the LimitRequestBody directive which will
stop the upload after a number of bytes are uploaded while they are
being uploaded.
If you wish to do display the uploading status while the file is
being uploaded, you can look at the UploadProgress module included in
rails 0.13 and higher. You will need a web server of Apache or
Lighttpd 1.4 with the compiled C FCGI bindings.
An example of how it works can be found here: http://
sean.treadway.info/demo/upload
-Sean
On Jul 13, 2005, at 11:33 PM, Greg McClure wrote:
> Is there any way to monitor file uploads on Rails, particularly the
> size of files? I want to set a maximum upload size, but I''m not
clear
> on how to do it.
>
> I know that lighttpd has a file upload progress module -- which would
> give access to file size -- that they''ll be releasing with 1.4,
but
> I''d like a solution now if I could get it. Also, this is obviously
> done now in any event.
>
> Any input is appreciated. Thanks.
>
> Greg
> _______________________________________________
> Rails mailing list
> Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org
> http://lists.rubyonrails.org/mailman/listinfo/rails
>