You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -49,11 +49,9 @@ export async function initDropzone(dropzoneEl) {
49
49
50
50
letdisableRemovedfileEvent=false;// when resetting the dropzone (removeAllFiles), disable the "removedfile" event
51
51
letfileUuidDict={};// to record: if a comment has been saved, then the uploaded files won't be deleted from server when clicking the Remove in the dropzone
52
-
constdzInst=awaitcreateDropzone(dropzoneEl,{
52
+
constopts={
53
53
url: dropzoneEl.getAttribute('data-upload-url'),
54
54
headers: {'X-Csrf-Token': csrfToken},
55
-
maxFiles: elemGetAttributeNumber('data-max-file',null),// match dropzone default value, no limit
56
-
maxFilesize: elemGetAttributeNumber('data-max-size',256),// match dropzone default value: 256 MiB
0 commit comments