On May 23, 12:27 pm, Stephen Cheng <stephenchengm...@gmail.com> wrote: > I suppose that all the fields' value in the form defined in model can > be captured and remained when/after you do form validation. My problem > is that : > > 1. When the form is not valid, the filename of image field is gone > once you click submit or > 2. If I intend to do something else once all fields are valid, the > image filename is still gone. > > So is this a common problem that django does not remmember the > filename? do you experience this? > > Thanks
Issue 1 is a limitation of HTML file inputs, not of Django. For security reasons, it's impossible to prepopulate a file control - otherwise it would be possible for a site to grab things from your hard disk without you realising. I don't really understand what you mean by issue 2. Can you post some code exhibiting the problem? -- DR. --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---