Hi,

On 14/08/2013 12:11, Hélio Miranda wrote:
Hi
I have a problem, that I am not able to solve it is:
I'm uploading pictures, and wanted to introduce their legends too, so
did the following, which was a preview of the images to the user before
uploading. My html code is this:

http://plnkr.co/edit/fm0hAZFkVUE7zA3BnZLw?p=preview

When you populate your div#result with previews of selected images, you add an input text field with always the same 'name' attribute. Those 'name' attributes should have unique value for each input text field (and not always name="legend").

And this preview is that there is.

Now in my view, I have this code:

http://plnkr.co/edit/u8ZSrFJCCKFO1PjhO8Tw?p=preview

The problem that happens is that it does well upload the photos without
problem but the subtitles he inserts in every picture the caption that
is only in the last.

And then, in your django view, you have to use request.POST['the_unique_name_attribute_for_that_photo'] to get the legend for a particular photo.


--
Laurent Meunier <laur...@deltalima.net>

--
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+unsubscr...@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.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to