Skip to content

An open-source, privacy-first, self-hosted knowledge workspace where humans and AI agents work together 开源、隐私优先、自托管的知识工作空间,让人与智能体在此协作

:loud_sound:

Vanessa221d3c1d7f12
diff --git a/app/src/protyle/breadcrumb/index.ts b/app/src/protyle/breadcrumb/index.ts
index f69deaa452..b3455ca9a8 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 896c0cd507..4f75250ac3 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)) {