Does anyone know of a clean way to pass file upload field data
to a rails controller and back to an edit form?

The problem is this:  user fills out a (possibly lengthy) form,
then submits.  If the form does not validate, we give them
back the form with most values filled in.  But I don't know
how to re-seed the file upload fields.  Among the problems
are that they seem to treated/interpreted differently on the
client side, depending on browser and OS.  Rails never (reliably
anyway) gets to see the actual file path that is the usual
content of a file upload field.  I think the problem is that
it's not really well defined what the "content" of a file upload
field is.  Is it the data stream?  Is it the file path?  

How is this situation usually (simply) dealt with?

Thanks!

        -glenn

--~--~---------~--~----~------------~-------~--~----~
SD Ruby mailing list
[email protected]
http://groups.google.com/group/sdruby
-~----------~----~----~----~------~----~------~--~---

Reply via email to