solve view-controller dropzone

This commit is contained in:
2026-07-21 11:49:32 +07:00
parent fbf84eb4cb
commit 8afe7f9b38
2 changed files with 21 additions and 4 deletions
@@ -763,7 +763,8 @@
let mockFile = {
name: "Foto Lahan " + (index + 1),
size: 1024,
id: index,
id: index,
file_path: pathStr,
isServerFile: true,
accepted: true
};
@@ -782,7 +783,7 @@
let deleteInput = $('<input>').attr({
type: 'hidden',
name: 'deleted_photos[]',
value: file.id
value: file.file_path
});
$('#deleted-photos-container').append(deleteInput);
}
@@ -811,7 +812,7 @@
let deleteInput = $('<input>').attr({
type: 'hidden',
name: 'deleted_photos[]',
value: fileToReplace.id
value: fileToReplace.file_path
});
$('#deleted-photos-container').append(deleteInput);
}