diff options
author | dan <[email protected]> | 2023-06-18 09:10:27 -0400 |
---|---|---|
committer | dan <[email protected]> | 2023-06-18 09:10:27 -0400 |
commit | 1747e69763341abf1111d56e41919a68f9102791 (patch) | |
tree | 6216cdbe40962950422337692f47ef2e684287d3 | |
parent | 041c22b43e59228c1d5384e55e15f117d740a764 (diff) | |
download | photo-album-gen-1747e69763341abf1111d56e41919a68f9102791.tar.gz photo-album-gen-1747e69763341abf1111d56e41919a68f9102791.tar.bz2 photo-album-gen-1747e69763341abf1111d56e41919a68f9102791.zip |
fix: image name set from file name
-rw-r--r-- | demo.js | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -81,7 +81,7 @@ function renderImages() { function addimage(file) { const img = new Image; const fr = new FileReader; - fr.onload = () => {img.src = fr.result; img.name = img.name}; + fr.onload = () => {img.src = fr.result; img.name = file.name}; fr.readAsDataURL(file); img.onload = () => { images.push(img); |