mirror of
https://github.com/PrivateBin/PrivateBin.git
synced 2025-07-21 14:08:48 -04:00
Name mismatches in attached files fixed
This commit is contained in:
parent
0178bbc075
commit
c4e381f523
2 changed files with 3 additions and 3 deletions
|
@ -3286,13 +3286,13 @@ jQuery.PrivateBin = (function($, RawDeflate) {
|
|||
|
||||
if (typeof loadedFiles !== 'undefined') {
|
||||
files = loadedFiles;
|
||||
loadedFiles.forEach(loadedFile => {
|
||||
loadedFiles.forEach((loadedFile, index) => {
|
||||
const fileReader = new FileReader();
|
||||
|
||||
fileReader.onload = function (event) {
|
||||
const dataURL = event.target.result;
|
||||
if (dataURL) {
|
||||
attachmentsData.push(dataURL);
|
||||
attachmentsData[index] = dataURL;
|
||||
}
|
||||
|
||||
if (Editor.isPreview()) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue