I have a form (Rails 3.2.8, Paperclip 3.1.4) with two clip attachments for a model with two has_attached_files. One of them is for an image, and the other is for a shared file, usually a .zip file.
Everything works fine until I try to upload a zip file. Downloading a .zip file of any size (the original was 80 MB, but tried 3 MB to find out if there was a problem with the size) causes the POST form instead of PUT, and Rails causes a routing error.
The form method is POST, but it has the hidden value of the Rails method, set to "put", which works fine and calls PUT when I am not trying to load .zip files.
The form actually has the "multipart" enctype bit set.
Any idea what could be causing this?
Christopher
source share