Hi,
I still use dispatch.fcg && lighttpd.
Here are two things I do -
1. Lighttpd config server.max-request-size option
http://trac.lighttpd.net/trac/wiki/server.max-r
equest-sizeDetails
2. In the app I use the file_column plugin (http://www.kanthak.net/
opensource/file_column/) for file uploads and use the
following in my
model.
validates_filesize_of :image, :in =>
5.kilobytes..2.5.megabyte
Hope this helps.
Cheers,
Ajay
On May 13, 2:37 pm, shai <ruby-forum-incom... andreas-s.net> wrote:
> Hi,
>
> as i'm aware that there are not too many out there
still using
> dispatch.fcgi && lighttpd (rather moving to
mongrels && nginx ) , i'll
> try to make this simple:
>
> how do i limit a file upload size in lighttpd? am i
supposed to do this
> via the app? i've racked the internet for a while now,
and my mind is
> heavy and stumped.
>
> i'm running dispatch.fcgi && lighttpd as the
web-server.
>
> any help or references would be greatly appreciated.
> thanks.
>
> --
> Posted viahttp://www.ruby-forum.com
/.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the
Google Groups "Deploying Rails" group.
To post to this group, send email to
rubyonrails-deployment googlegroups.com
To unsubscribe from this group, send email to
rubyonrails-deployment-unsubscribe googlegroups.com
For more options, visit this group at http://groups.google.com/group/rubyonrails-deployment
?hl=en
-~----------~----~----~----~------~----~------~--~---
|