Skip to content

Commit

Permalink
Update web_src/js/features/comp/EditorUpload.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
wxiaoguang authored Jan 21, 2025
1 parent 7204534 commit 55ddbea
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion web_src/js/features/comp/EditorUpload.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ function uploadFile(dropzoneEl: HTMLElement, file: File) {
}
};
dropzoneInst.on(DropzoneCustomEventUploadDone, onUploadDone);
// this is not entirely correct because File does not satisfy DropzoneFile
// FIXME: this is not entirely correct because `file` does not satisfy DropzoneFile (we have abused the Dropzone for long time)
dropzoneInst.addFile(file as DropzoneFile);
});
}
Expand Down

0 comments on commit 55ddbea

Please sign in to comment.