On Tue, Jul 14, 2009 at 12:48 PM, kevinski <ksi...@gmail.com> wrote: > > Hello, > > I am using 3 image fields in my model form. When I browse for images > and submit, the images are uploaded with no problem. When my form does > not validate, error messages appear for invalid fields and correct > fields stay in tact, however my image paths disappear and I am > required to browse for them again and again until the form finally > validates. Anyone ever experience a similar problem? Any idea what I > am missing? > > I've searched and searched and haven't found info on this. Please let > me know if there is any code I could offer and I will post. >
This is a security feature of the browser so that you don't accidentally upload an arbitrary file to the server without knowing it. I don't know of a way to get around it, nor would I hope there is one. This is the case for all browsers and all internet forms. The only thing I can offer is to separate your uploading from the rest of the form so you can save the image even if someone types in a wrong phone number. Hope that helps, Michael --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~----------~----~----~----~------~----~------~--~---