Re: MEDIA_ROOT and file uploads

2009-07-21 Thread J
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

MEDIA_ROOT and file uploads

2009-07-20 Thread Léon Dignòn
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