How Upload Image Html File To save DataBase

16 views
Skip to first unread message

kkwaq...@gmail.com

unread,
Sep 15, 2020, 3:50:00 PM9/15/20
to Django users
Problem :- I have Create table and add ImageField , i wanna upload_image Front-end  and save database..


html file: But Image Not save 
I am upload using database


u.JPG
models.py

i.JPG

Html Coding file
j.JPG

urls.py

g.JPG




waqar khan

unread,
Sep 16, 2020, 4:08:38 AM9/16/20
to django...@googlegroups.com
I am Using dataBase Sql

--
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/7bcbd386-354a-40fd-87dc-2e9d83b11fa6n%40googlegroups.com.

waqar khan

unread,
Sep 16, 2020, 4:13:11 AM9/16/20
to django...@googlegroups.com
s.JPG

Please Guys Reply Me .....

RANGA BHARATH JINKA

unread,
Sep 16, 2020, 4:22:05 AM9/16/20
to django...@googlegroups.com
Hi,

Store the images in a folder.
Store the images folder path in the database.
Don't store the images directly in db.
It is not a good practice.
Instead use aws for storing images.

Follow this tutorial series.


All the best



--
Thanks and Regards

J. Ranga Bharath
cell: 9110334114

RANGA BHARATH JINKA

unread,
Sep 16, 2020, 4:24:40 AM9/16/20
to django...@googlegroups.com
Check django documentation to store images to the folder.

Use upload_to in models.py

You have to update your models.

All the best
Reply all
Reply to author
Forward
0 new messages