File Upload Timeout Rails/Paperclip
I am trying to upload pictures using the paperclip gem and Ruby on Rails. Everything works great except when I try to upload larger files (~5MB), when the application times out.
I've set the unicorn.rb config file to have a timeout of 120, while the production database.yml file also has a timeout of 120,000 milliseconds. I've also restarted unicorn using service unicorn restart. However, even with these updates, the application still times out - in roughly 5 seconds.
The web application is for a very low-traffic webpage, with only one or two people uploading these types of files occasionally. So, I'm not particularly worried about the performance impact that this functionality might have. Does anyone have any idea what other choke point might be triggering a 5 second timeout error like this?