diff --git a/web_src/js/features/common-global.js b/web_src/js/features/common-global.js
index eb59bcbe38..a508db39c5 100644
--- a/web_src/js/features/common-global.js
+++ b/web_src/js/features/common-global.js
@@ -192,7 +192,8 @@ export function initGlobalDropzone() {
thumbnailWidth: 480,
thumbnailHeight: 480,
init() {
- this.on('success', (_file, data) => {
+ this.on('success', (file, data) => {
+ file.uuid = data.uuid;
const input = $(``).val(data.uuid);
$dropzone.find('.files').append(input);
});
diff --git a/web_src/js/features/repo-legacy.js b/web_src/js/features/repo-legacy.js
index 6cdde6a1e4..2bf80d5511 100644
--- a/web_src/js/features/repo-legacy.js
+++ b/web_src/js/features/repo-legacy.js
@@ -300,6 +300,7 @@ async function onEditContent(event) {
thumbnailHeight: 480,
init() {
this.on('success', (file, data) => {
+ file.uuid = data.uuid;
fileUuidDict[file.uuid] = {submitted: false};
const input = $(``).val(data.uuid);
$dropzone.find('.files').append(input);