diff --git a/app/src/protyle/breadcrumb/index.ts b/app/src/protyle/breadcrumb/index.ts index f69deaa45..b3455ca9a 100644 --- a/app/src/protyle/breadcrumb/index.ts +++ b/app/src/protyle/breadcrumb/index.ts @@ -256,6 +256,7 @@ export class Breadcrumb { uploadMenu.querySelector("input").addEventListener("change", (event: InputEvent & { target: HTMLInputElement }) => { + console.log(event.target.files.length) if (event.target.files.length === 0) { return; } diff --git a/app/src/protyle/upload/index.ts b/app/src/protyle/upload/index.ts index 896c0cd50..4f75250ac 100644 --- a/app/src/protyle/upload/index.ts +++ b/app/src/protyle/upload/index.ts @@ -252,6 +252,7 @@ export const uploadFiles = (protyle: IProtyle, files: FileList | DataTransferIte protyle.upload.isUploading = true; xhr.onreadystatechange = () => { + console.log(xhr.readyState) if (xhr.readyState === XMLHttpRequest.DONE) { protyle.upload.isUploading = false; if (!document.body.contains(protyle.element)) {