Skip to content

Commit

Permalink
pass filename to reader
Browse files Browse the repository at this point in the history
  • Loading branch information
javl committed May 5, 2023
1 parent 67a768f commit 8c55d50
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions js/script.js
Original file line number Diff line number Diff line change
Expand Up @@ -873,10 +873,9 @@ function handleImageSelection(evt) {
placeImage(images.last());
allSameSize(images, files);
};
console.log('file', file);
// img.src = e.target.result;
img.src = file.target.result;
};
reader.name = files[i].name;
reader.readAsDataURL(files[i]);
}
}
Expand Down

0 comments on commit 8c55d50

Please sign in to comment.