Re: File Input from User

2021-03-29 Thread Ryan Nowakowski
On Thu, Mar 18, 2021 at 11:37:08PM -0700, Kumar Gaurav wrote: > I have a social media kind of portal in Django where user can post an image > and write something. > Earlier for image , I used input type=file so that user can select image > from there system . But for my requirement, now I want th

Re: File Input from User

2021-03-19 Thread Kumar Gaurav
I made one separate table for storing all the image sets and I am able to view it on the template. But while uploading, how to assign it to the post file input, there I am stuck ?? The post image field is configured to get image from the user's system. On Friday, March 19, 2021 at 12:15:18 PM

Re: File Input from User

2021-03-18 Thread pankaj palmate
yes you can do just make one anchor tag and call view asynchronously*(using ajax) *so that particular set of image is shown and then prepare logic for selecting image and submit the form as you do On Fri, Mar 19, 2021 at 12:07 PM Kumar Gaurav wrote: > Hi Everyone, > > I have a social media kind

File Input from User

2021-03-18 Thread Kumar Gaurav
Hi Everyone, I have a social media kind of portal in Django where user can post an image and write something. Earlier for image , I used input type=file so that user can select image from there system . But for my requirement, now I want the user to to have an option to either upload or select