From Rails wiki:
http://wiki.rubyonrails.com/rails/pages/HowtoUploadFiles
“The uploaded file will be a
TempFilehttp://www.ruby-doc.org/core/classes/Tempfile.html-like
object (if over 10kb in size). These can be copied by the filesystem
instead of being read and processed through Ruby.”
Basically, Rails makes a temporary file instead of having all that
binary
data in your memory when uploading big files. I have no problem handling
either situation, but it would be nice to know the exact number at which
this change in treatment happens (it’s not exactly 10kilobytes or
10kilobits.) It seems like this should be a constant, if anything…does
anybody know either a number for this, or better yet, a constant?
–
Respectfully,
Larry Diehl
www.larrytheliquid.com