kannan D.S kannan D.S - 1 year ago 94
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

Answer Source

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

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download