diff --git a/src/lib/components/workspace/Knowledge/Collection.svelte b/src/lib/components/workspace/Knowledge/Collection.svelte index e178cd80b..d5e7b1f78 100644 --- a/src/lib/components/workspace/Knowledge/Collection.svelte +++ b/src/lib/components/workspace/Knowledge/Collection.svelte @@ -534,10 +534,10 @@ type="file" multiple hidden - on:change={() => { + on:change={async () => { if (inputFiles && inputFiles.length > 0) { for (const file of inputFiles) { - uploadFileHandler(file); + await uploadFileHandler(file); } inputFiles = null;