#14416: ImageField forms require an enctype, not documented ------------------------------------------+--------------------------------- Reporter: airstrike | Owner: nobody Status: new | Milestone: Component: Documentation | Version: Keywords: ImageField enctype form HTML | Stage: Unreviewed Has_patch: 0 | ------------------------------------------+--------------------------------- Well, this may very well not be a Django issue, but I can't help but suggest that this small caveat be documented somewhere.
Forms with ImageField require an enctype attribute such as <form enctype="multipart/form-data" method="post" action="">. Yes, it's HTML, not Django. But frustrating nonetheless. As you can see by reactions in http://stackoverflow.com/questions/680770 /django-imagefield-not-working-properly-via-modelform many new developers have a tough time when dealing with this issue. I'm not bold enough to submit a documentation patch, but it should be fairly simple to explain. -- Ticket URL: <http://code.djangoproject.com/ticket/14416> Django <http://code.djangoproject.com/> The Web framework for perfectionists with deadlines. -- You received this message because you are subscribed to the Google Groups "Django updates" 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-updates?hl=en.
