From 80a9b8a34dfef8525f00fe3e3e7dec54ae09340d Mon Sep 17 00:00:00 2001 From: codytseng Date: Sun, 28 Sep 2025 22:12:19 +0800 Subject: [PATCH] fix: remove unnecessary delay in file upload process --- .../PostEditor/PostTextarea/ClipboardAndDropHandler.ts | 1 - 1 file changed, 1 deletion(-) diff --git a/src/components/PostEditor/PostTextarea/ClipboardAndDropHandler.ts b/src/components/PostEditor/PostTextarea/ClipboardAndDropHandler.ts index 4d94519..e3e32c6 100644 --- a/src/components/PostEditor/PostTextarea/ClipboardAndDropHandler.ts +++ b/src/components/PostEditor/PostTextarea/ClipboardAndDropHandler.ts @@ -123,7 +123,6 @@ async function uploadFiles( abortControllers.set(file, abortController) options.onUploadStart?.(file, () => abortController.abort()) }) - await new Promise((resolve) => setTimeout(resolve, 10000)) for (const file of files) { const name = file.name