kannan D.S kannan D.S - 9 months ago 55
CSS Question

Jquery image upload same image not uploading issue

am trying to upload multiple images using jquery. but same images are not uploading. how to solve this issue please check my fiddle

$images = $('.imageOutput')
function readURL(input) {
if (input.files && input.files[0]) {
$.each(input.files, function() {
var reader = new FileReader();
reader.onload = function (e) {
$images.append('<img src="'+ e.target.result+'" />')

click here for jsfiddle


if you try to upload the same file, the value of file input does not change. Try to print it out:

        console.log($(".list .upload-file").val())
        return false;

Or use this one If you want to upload twice, clear file input value