Django and Vue - Upload Files | Single and Multiple | Axios

Django and Vue - Upload Files | Single and Multiple | Axios

Code With Stein

2 года назад

6,707 Просмотров

Learn how to use Python Django and Vue to build a multiple/single file uploader. Select the files in your browser, and upload them using Axios to the backend (Django).

The files will be put in a uploads folder, and Django will handle most of this for us.

CDNS:
Bulma: https://cdn.jsdelivr.net/npm/[email protected]/css/bulma.min.css
Vue: https://unpkg.com/vue@3
Axios: https://unpkg.com/axios/dist/axios.min.js

---

Code With Stein Premium

If you want to learn even more from me, check out my website https://codewithstein.com where you can track progress, talk to me and similar :-D

Support me

Donate: https://www.paypal.com/paypalme/codewithstein
Patreon: https://patreon.com/codewithstein
Merch: https://shop.spreadshirt.com/code-with-stein/

Important links

Discord: https://discord.gg/GJCvwc8EGs
Github: https://github.com/SteinOveHelset/fileuploader
Twitter: https://twitter.com/codewithstein
Website: https://codewithstein.com

---

#codewithstein #django #djangoupload #django #djangoandvue #djangofileupload

Тэги:

#code_with_stein #django #learn_django #django_tutorial #django_and_vue #django_and_vue_uploader #django_and_vue_upload_files #django_file_uploader #django_multiple_file_uploads
Ссылки и html тэги не поддерживаются


Комментарии:

Unathi Nomela
Unathi Nomela - 10.08.2022 18:16

What is the best practice to version your django rest apis?

Is creating different versions in the serializers a best practice?

Ответить
Kei Kusanagi 99
Kei Kusanagi 99 - 02.06.2022 21:00

nice tutorial

Ответить
kelvin njoro
kelvin njoro - 28.05.2022 13:33

Thank you so much stein.

Ответить
Nana Yaw
Nana Yaw - 24.05.2022 11:55

👍 you are doing a great work bro

Ответить
zeineb araar
zeineb araar - 18.05.2022 10:59

Hi stein thank u , pls how I apply that with django rest framework how can I serializer the file ?

Ответить
Ezra-E
Ezra-E - 17.05.2022 15:31

Hi! Thanks for providing this interesting tutorial. I was wondering if you have any thought of providing a tutorial on django-graphql-vue3 apollo file upload, storing your file in local storage?

Ответить
Илья
Илья - 17.05.2022 01:24

Thank you so much for your labour! Would be glad if you showed a registration and authentication in DRF+Vue with access and refresh tokens. I saw your method with the only token but heard that it is not enough safe (e.g. to store it in local storage)

Ответить
Nurullo Salaydinov
Nurullo Salaydinov - 16.05.2022 17:53

Thanks, I was searching how to transfer image with vue

Ответить
Mikail İBRAHİMOĞLU
Mikail İBRAHİMOĞLU - 16.05.2022 17:04

👍

Ответить
Aditya Priyadarshi
Aditya Priyadarshi - 16.05.2022 10:04

Just the thing I was looking for.

Ответить
Reza Rostami
Reza Rostami - 16.05.2022 09:01

tnx

Ответить