Re: Image browsing in django
On Mon, Oct 14, 2013 at 2:25 PM, Harjot Mann <harjotmann1992@gmail.com> wrote:
> On Fri, Oct 11, 2013 at 3:44 PM, Tom Evans <tevans.uk@googlemail.com> wrote:
>> Forms containing files must have encoding type of
>> "multipart/form-data" or the file will not be submitted with the rest
>> of the form.
>
>
> Didn't get you here. My problem is this that when I am browsing for
> image ita takes int he upload area but when I submit, it gives me an
> error no files selected?
>
Yes, this is what I said before. Forms that contain files must be
specified in the HTML differently than forms that do not contain
files, or when the form is submitted, the file will not be submitted
along with the form.
Forms with files must have an encoding attribute set on the <form>
element, eg "<form encoding='multipart/form-data' ....>". If they do
not, files will not be submitted when the form is submitted.
The stackoverflow page I linked to previously explains why in detail.
Cheers
Tom
--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CAFHbX1KS019SOenyYBW604RcRgwD5gj-bQqWiQHZhL%3DVbmV3eA%40mail.gmail.com.
For more options, visit https://groups.google.com/groups/opt_out.
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home