How to Upload Images to Django REST Framework using Fetch API

preview_player
Показать описание
Also how you upload images to Django using a front-end framework (Vue, React, Svelte, etc.) in general.

LINKS
-----------
I teach people how to code for a living. Want me to coach you directly?

Or...

---
Рекомендации по теме
Комментарии
Автор


I'm using the most basic setup possible: standard model serializer setup, standard viewsets, standard routers 😉 Once you do it the first time, it's easy after that!

zackplauche
Автор

Wow. This is exactly what I was looking for. Short & Crisp. Will try this from front end tomorrow.

jayesh_
Автор

Great video, but why are you using await and .then?

patricechaula
Автор

I wish you showed your urls, views, and serializers

trevorkerney
Автор

Good tutorial.
How do you make the ImageField as optional field? As for uploading, I do not have problem. Thank you.

rgsma
Автор

hello I am completely beginner, I am starting to master the APIs in make scenarios
I had some ideas but I don't know if it's possible without achievability and what you could help me understand

these are ideas regarding SEO and images

could you help me understand what I could do using SEO or image APIs in a make scenario

chrisder
Автор

Hi, I've heard conflicting things on this but can I upload an image or other file alongside an update to a model that is written in json? For instance if I have a profile that I update via a JSON post request but I use an optional image field within it, can I update the image at the same time or should I create a separate view for that functionality?

epsilon
Автор

Dude video was titled as django rest but the whole django rest stuffs was subjected in first 30 secs.

amirfzd