Answer the question
In order to leave comments, you need to log in
How to preview images when uploading with input type=[file]?
I did a preview for one uploaded image on this question . Everything is fine, but you need to do a preview for several images on the page. How to be? There, in the comments to the question, there is such a " sub-question "
I found an option where previews are made for a "pack" of images at once, but this does not suit me. Images are added manually to different inputs. It looks like this in the end
. Tell me how to implement this business?
Answer the question
In order to leave comments, you need to log in
https://github.com/blueimp/jQuery-File-Upload
https://blueimp.github.io/JavaScript-Load-Image/
www.dropzonejs.com
When you select files in input[type=file] with a dialog or drop them via dragndrop, you will have an array in input.files with local paths to user files. just create a new <img> and set src= to the local path to the image and the browser will pick it up from the local disk.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question