hello guys, how can I upload multiple images using single button? help me please

47 views
Skip to first unread message

Chelsea Fan

unread,
Jan 7, 2021, 12:25:10 PM1/7/21
to django...@googlegroups.com

Steven Mapes

unread,
Jan 7, 2021, 1:09:13 PM1/7/21
to Django users
Within Django Admin or somewhere else?
Are you using FileFields and trying to save to the models or are you just trying to POST multiple files?

On Thursday, 7 January 2021 at 12:25:10 UTC allaberdi...@gmail.com wrote:

Chelsea Fan

unread,
Jan 8, 2021, 8:05:32 AM1/8/21
to django...@googlegroups.com
yes I am using FileField and trying upload and to save it


--
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...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/ba3a4c6a-0788-457f-8e7d-576d612a7f61n%40googlegroups.com.

Satyajit Barik

unread,
Jan 8, 2021, 2:24:26 PM1/8/21
to django...@googlegroups.com
do you use API or server side rendering method?

Chelsea Fan

unread,
Jan 9, 2021, 6:15:52 AM1/9/21
to django...@googlegroups.com

Joseph Wayodi

unread,
Jan 9, 2021, 4:54:13 PM1/9/21
to django...@googlegroups.com
The Django docs show how to do this:
<https://docs.djangoproject.com/en/3.1/topics/http/file-uploads/#uploading-multiple-files>.

On Thu, 7 Jan 2021 at 15:24, Chelsea Fan <allaberdi...@gmail.com> wrote:
>
>
> --
> 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...@googlegroups.com.
> To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CAJwZndca8SC7ifBzyW4ut%3DJXy-2E3RPPvq2tHrpCyxyqABQnzw%40mail.gmail.com.

Chelsea Fan

unread,
Jan 9, 2021, 7:08:23 PM1/9/21
to django...@googlegroups.com
I tried it, it works but it saves last file twice, for example if I upload 2 file it saves 3 

Joseph Wayodi

unread,
Jan 9, 2021, 7:45:32 PM1/9/21
to django...@googlegroups.com
Post your code here, and someone will help you figure out why it does
not work like you expect.
> To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CAJwZndefeU5b4a9J_JjyMpTHyr-dwQ5GCs-7eJf0Kvf3qdjUFQ%40mail.gmail.com.
Reply all
Reply to author
Forward
0 new messages