Roderick van Domburg
2008-Jul-29 20:47 UTC
Re: Way to limit file upload size using file_column or attac
DavidB wrote:> While I know this can be done with some flas based solutions, how can > one limit the size of an upload to an RoR application within the > application rather than via apache''s configuration? I just don''t want > anyone trying to upload a 100mb file.Haven''t used FileColumn though I know that you can configure the :size parameter of has_attachment in attachment_fu. You''ll subsequently want to use the built-in validates_as_attachment too. I''ve heard good stories about the Paperclip plugin - you might want to check out that one too. -- Roderick van Domburg http://www.nedforce.nl -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---