My application is developed in asp.net c#. I have a form to update data with image, this is working fine and record is getting saved in database perfectly. In a scenario where my form is in edit mode, i am retrieving record from database using ajax with JSON response and binding all input fields with JSON response. The problem here is i have a IMAGE location in response (~/assets/gallery/popup/image.jpg), how can i assign it back to input file type field with image preview, to show previously selected image. Suggest me some ideas or alternative approach.
If assigning file location back to field is not possible, then how should i proceed with this, to show previously selected image
Thanks