On Tue, Jan 20, 2009 at 9:48 AM, Mislav Marohnić
<[email protected]> wrote:
> In my workaround I detect there was no file if the `filename` property is
> blank. Are there cases a valid file could be uploaded without an original
> filename? Is a better check to see if the size of Tempfile is 0, also?

I think a filename is always provided. Could probably check
params[:tempfile].length as you suggested too.

hrm, maybe this is a Rack issue too :)
I don't think Rack's multipart parser should be creating empty tempfiles.



-- 
Joshua Peek

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Core" 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-core?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to