Timothy J. Baek 7 tháng trước cách đây
mục cha
commit
d9ccef8150
1 tập tin đã thay đổi với 2 bổ sung2 xóa
  1. 2 2
      src/lib/components/workspace/Knowledge/Collection.svelte

+ 2 - 2
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;