Check, whether you've added "upload_to" in your Image Field and add MEDIA_ROOT & MEDIA_URL in settings.py file or not.
On Sat, Nov 20, 2021, 10:36 AM Alam Khazi <[email protected]> wrote: > Hi, > By using Vuejs, Axiox and Django, Uploading multiple images. After > uploading images are getting in list and then those list of images names we > are storing into backend in ImageField image is saving into database but > not saving into media folder. > > > ['nature6.jpg', 'nature5.jpg', 'nature4.jpg', 'nature3.jpg', > 'nature2.jpg', 'nature1.jpg', 'nature.jpg'] > ``` > if request.method == "POST": > # From template we are fetching values > data = json.loads(request.body) > images = data['images'] > saveform = vk_service(image=images[0], > image2=images[1], > image3=images[2], > image4=images[3], > image5=images[4], > image6=images[5],) > ``` > Images are saving into database but not saving in media folder. > Please help me out to solve this issue. > > Thanks > ~Salima > > -- > 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 [email protected]. > To view this discussion on the web visit > https://groups.google.com/d/msgid/django-users/CABscGkSJ66hXxyOOZYfLSbaAH-Wc89QogQXX%3DVeMFheghJJp2A%40mail.gmail.com > <https://groups.google.com/d/msgid/django-users/CABscGkSJ66hXxyOOZYfLSbaAH-Wc89QogQXX%3DVeMFheghJJp2A%40mail.gmail.com?utm_medium=email&utm_source=footer> > . > -- 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 [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CAJY8mfz3wxSKppg3MSnFhj8OOykipj6D4esH%3DbA0zibSowAdqQ%40mail.gmail.com.

