List Info

Thread: dispatch.fcgi && lighttpd file upload




dispatch.fcgi && lighttpd file upload
country flaguser name
Germany
2007-05-13 08:37:56
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 via http://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-deploymentgooglegroups.com
To unsubscribe from this group, send email to
rubyonrails-deployment-unsubscribegooglegroups.com
For more options, visit this group at http://groups.google.com/group/rubyonrails-deployment
?hl=en
-~----------~----~----~----~------~----~------~--~---


Re: dispatch.fcgi && lighttpd file upload
country flaguser name
United States
2007-05-14 03:43:28
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-deploymentgooglegroups.com
To unsubscribe from this group, send email to
rubyonrails-deployment-unsubscribegooglegroups.com
For more options, visit this group at http://groups.google.com/group/rubyonrails-deployment
?hl=en
-~----------~----~----~----~------~----~------~--~---


Re: dispatch.fcgi && lighttpd file upload
country flaguser name
United States
2007-05-17 05:36:14
hmm... my understanding is that validates_filesize_of
doesn't require
rmagick but validates_image_size does.

On May 15, 10:00 am, shai <ruby-forum-incom...andreas-s.net> wrote:
> >>  validates_filesize_of :image, :in =>
5.kilobytes..2.5.megabyte
>
> do i need rmagick for this? or is file_column plugin
enough (this is my
> case)?
>
> --
> 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-deploymentgooglegroups.com
To unsubscribe from this group, send email to
rubyonrails-deployment-unsubscribegooglegroups.com
For more options, visit this group at http://groups.google.com/group/rubyonrails-deployment
?hl=en
-~----------~----~----~----~------~----~------~--~---


[1-3]

about | contact  Other archives ( Real Estate discussion Medical topics )