Hello,

I've having a problem with FileField and ImageField. Basically, I have
a form for uploading images:

Name: _a_  (throws ValidationError('This name is already taken. Choose
another'))
Notes: _test notes_
Filename:  _abc123.txt_

When I press SUBMIT, I get the form again, but it looks like this:

-This name is already taken. Choose another
Name: _a_
Notes: _test notes_
Filename:  _________ (blank???? Not sure why)

The FileField is not repopulated for some reason, but the other fields
are.

Using django-1.0

I bind the data as specified at
http://docs.djangoproject.com/en/dev/topics/http/file-uploads/#topics-file-uploads:

form = UploadNewImageForm(request.POST, request.FILES)

My view function is identical to the one on the example page.
Everything else works, the file is properly uploaded and there are no
other problems. It is really just a user interface issue I would like
to fix because it is very annoying to have to repopulate the form
every time there is an input error, especially if there are many
fields.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django users" 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/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to