Hi I am trying to upload 30mb files with attachment-fu, these seem to just hang. (works file for small image files) I am using mongrel cluster and nginx... Does anyone have any advice? Thanks Richard --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
On 11 Jan 2009, at 12:51, Richard wrote:> I am trying to upload 30mb files with attachment-fu, these seem to > just hang. (works file for small image files) > I am using mongrel cluster and nginx... > > Does anyone have any advice?Check your nginx conf file and set the client_max_body property to something higher: client_max_body_size 50M; It could probably be a number of other things too, but your information is so limited it''s just guess work. Try and isolate the problem to either your rails app, mongrel or nginx. Best regards Peter De Berdt --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
maybe you got a limit in your database. you could set max_allowed_packet = 32M look here: http://dev.mysql.com/doc/refman/5.1/en/packet-too-large.html --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
Peter, Thanks for your reply, yes I should have posted the nginx.conf contents. But yes you were right. It was the client_max_body_size, I changed this in the nginx.conf then it worked! Thanks so much for your help. Richard On Jan 11, 8:58 pm, Peter De Berdt <peter.de.be...-LPO8gxj9N8aZIoH1IeqzKA@public.gmane.org> wrote:> On 11 Jan 2009, at 12:51, Richard wrote: > > > I am trying to upload 30mb files with attachment-fu, these seem to > > just hang. (works file for small image files) > > I am using mongrel cluster and nginx... > > > Does anyone have any advice? > > Check your nginx conf file and set the client_max_body property to > something higher: > > client_max_body_size 50M; > > It could probably be a number of other things too, but your > information is so limited it''s just guess work. Try and isolate the > problem to either your rails app, mongrel or nginx. > > Best regards > > Peter De Berdt--~--~---------~--~----~------------~-------~--~----~ 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@googlegroups.com For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
Thanks for the reply, As Peter suggested I didn''t write enough about my problem, I was no actually saving my file into the database, I was saving into the file system. But thanks for the advice. On a db based file save your answer may have been another reason also. All the best Richard On Jan 11, 8:58 pm, MaD <mayer.domi...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> maybe you got a limit in your database. you could set > max_allowed_packet = 32M > > look here:http://dev.mysql.com/doc/refman/5.1/en/packet-too-large.html--~--~---------~--~----~------------~-------~--~----~ 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@googlegroups.com For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---