A
A
Andrey2016-04-17 15:14:03
Django
Andrey, 2016-04-17 15:14:03

What is the best and most convenient way to multi-upload images?

Hello!
For example, let's take models:
class Article(models.Model):
# Some fields
class ArticleImage(models.Model):
# FK on Article
# ImageField
When creating an Article, it is necessary to have an "Upload photo" button, when clicked, a window opens selecting files, the user selects several images, they are loaded and their previews appear! Also, when editing an Article, you need the user to be able to add and remove photos!
4b17dca406194f2fb3f23b335c1f41cb.png
Right now I have the image upload for the post implemented using Formsets, but I want to do it as described above!
20cc0bb6ae8d45fab22eec17c34fc756.png
How do you do it in your projects, what do you use, because the task is not the rarest?!

Answer the question

In order to leave comments, you need to log in

1 answer(s)
Z
zelsky, 2016-04-17
@zelsky

https://github.com/Chive/django-multiupload

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question