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
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
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
maybe you got a limit in your database. you could set max_allowed_packet = 32M
look here: MySQL :: MySQL 8.0 Reference Manual :: B.3.2.8 Packet Too Large
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
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