I’m uploading files to a mysql database, using a mediumblob size.
Following the wiki here:http://wiki.rubyonrails.org/rails/pages/HowtoUploadFiles ,
I got past the first mysql 500kb limitation with the max_allowed_packet
= xM
trick, setting it to 1000M.
However, as the person at the very bottom of the wiki notes, I too
cannot
upload more than around 10mb.
I also tried the suggested workaround: <%= hidden_field ‘value’,
‘1000000’
%> in the same form as my binary file_field.
Substituting ‘value’ for the same name as my binary field, and other
random
words didn’t help either.
My intuition says that Rails will expect a specific name like
max_in_kilobytes or whatnot, or that the suggestion is wrong entirely.
Any
help?
Thanks.