I've been trying unsuccessfully to implement a file-upload form.

I put up the code from models.py, forms.py, and views.py, as well as
the form template code and the generated form html at <http://
dpaste.com/hold/33353/>. I'd appreciate and welcome pointers to where
I'm going wrong.

Relevant info...

- When I add a file from the admin interface, all works as expected.
The file name appears in the db table's 'name' field; the path
'test_uploads/filename' appears in the 'originalfile' field; and the
file is actually uploaded to the 'test_uploads' directory.

- When I add a file (using my own newforms form) via the 'Choose File'
button, the file appears to be properly selected. When I 'Submit', the
file name *does* appear as expected in in the db table's 'name' field.
However, in the 'originalfile' field, only 'filename' appears (i.e.
'house_pic.png'), not preceeded by 'test_uploads/' as above -- and the
file is not uploaded to the 'test_uploads' directory or anywhere.

- I'm running version 6401.

Thanks much in advance.

/birkin


--~--~---------~--~----~------------~-------~--~----~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to