Kashiftufail
Kashiftufail

Reputation: 10885

Uploading error with nginx and thin server in Rails production

I have deployed my app here http://jobmre.com/ with nginx and thin server.

When I tried to upload big mp4 files of size, say 100MB. I have an error as shown in screenshot

Screenshot:

enter image description here

Any help to resolve this issues.I am using paperclip for uploading.

Thanks

Upvotes: 0

Views: 83

Answers (1)

Mohammad AbuShady
Mohammad AbuShady

Reputation: 42789

Edit your nginx server block and add this line

client_max_body_size 500M;

This will allow uploading of 500 megabytes, if you want more or less it's up to you.

Upvotes: 1

Related Questions