johndatserakis / file-upload-with-preview

🖼 Simple file-upload utility that shows a preview of the uploaded image. Written in TypeScript. No dependencies. Works well with or without a framework.

Home Page:https://johndatserakis.github.io/file-upload-with-preview

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

How to access already added images while editing a form?

manasvinagpal opened this issue · comments

I am unable to get a preview of already added images while editing my form and when I add new images in edit form it replaces the existing ones

It sounds like you'll need to save the existing state of your file-upload-with-preview before letting the user edit it.

I'm sorry I'm not sure exactly what you mean by your message.

Although, you may need to add the multiple property to the <input type="file" element. You can see I have it added to the demo that shows the multiple preview option, demo here.

Closing for now. The library has recently been updated, so perhaps you can take another look and see if the add typing helps your issue.