> On Jun 18, 12:19 pm, "Mark W." <[email protected]> wrote:
>> Hi all,
>>
>> Is there an easy way to not lose the file field input from the user
>> after a validation error?  It pisses people off to have to choose
>> their files again just because some other field didn't pass a
>> validation.  I've googled this and just haven't come up with much of
>> anything.
>>
>> Thanks.

I save the file and store it's location in a session variable, then
you can get to the file again on resubmission.
You will need a strategy to clean up orphaned files where the user has
not re-submitted the form

Andrew Timberlake
http://ramblingsonrails.com

http://MyMvelope.com - The SIMPLE way to manage your savings

--~--~---------~--~----~------------~-------~--~----~
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