It worked automatically for me.
Make sure you put enctype="multipart/form-data" in the form definition
http://docs.djangoproject.com/en/dev/topics/http/file-uploads/
Note that request.FILES will only contain data if the request method was
POST and the that posted the request has the attribute
Hello everybody,
I created an upload form with the help of the docs.
http://docs.djangoproject.com/en/dev/topics/http/file-uploads/#topics-http-file-uploads
But the handle_uploaded_file() bugs me a little bit. I set MEDIA_ROOT
(MR) in the settings.py to an existing directory. I thought that file
2 matches
Mail list logo