On Sat, Apr 17, 2010 at 2:54 AM, Alfredo Alessandrini
<[email protected]>wrote:
> profile.html
> -------------------
> <form method="post" action="/dendro/profile/">
> {{ formset }}
> <input type="submit" class="button" id="display_button"/>
> </form>
> -------------------
>
> If I change 'course' or 'project' it's work. But if I try to upload a
> file don't work. Any suggestion?
>
>
First problem (might be last problem also, I did not look at all at the rest
of the code) is the HTML form is not specified to have an enctype of
multipart/form-data. From
http://docs.djangoproject.com/en/dev/topics/http/file-uploads/#basic-file-uploads
:
Note that request.FILES will only contain data if the request method was
POST and the <form> that posted the request has the attribute
enctype="multipart/form-data". Otherwise, request.FILES will be empty.
Karen
--
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.