search for: max_file_size

Displaying 3 results from an estimated 3 matches for "max_file_size".

2006 Dec 02
1
How to Set Max File Size for Upload?
I used to use <input type="hidden" name="MAX_FILE_SIZE" value="100000" /> in my PHP days, but it doesn''t seem to work with Rails. I always thought MAX_FILE_SIZE was an HTML spec, but upon a little research, it looks like it is PHP specific. Can anyone confirm? Anyway, I want to prohibit a user from uploading large files. For...
2006 Jun 07
1
Upload to DB hang mentioned in wiki
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
2008 Jul 30
0
Halt file upload if maximum size is reached. Is that possible?
...is method prevents files outside of the valid range (:min_size to :max_size, or the :size range) from being saved. It does not however, halt the upload of such files. They will be uploaded into memory regardless of size before validation." So, in attachment_fu, this isn''t possible. MAX_FILE_SIZE worked for PHP, but for Rails, apparently it doesn''t. Thanks in advance for any help, Paulo Pereira --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group...