Brendon Whateley wrote:
> Just to clarify further.  If the file is large enough, it WON'T be
> kept in memory, instead it will be written to a temp file and the
> handle for that will be passed in the params.  I don't know of any way
> inside Rails to stop a file being uploaded, but suspect you could get
> the web server to limit how much it would upload for a single request.
> 
> Brendon.

Good to know. I use Litespeed. I'll check the server settings.

What I don't understand is how this actually works, so just a quick 
follow-up question – that I guess is more related to the basics of file 
handling in Ruby.

I see that it comes into the server as a ruby object. Isn't that a 
temp-file? I thought that it always was a temp-file. Can I use 
File.size(file) on that or do I have to File.open() first?

-- 
Posted via http://www.ruby-forum.com/.

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to