Skip to content

Commit 14b7dff

Browse files
committed
fix file drag-n-drop
1 parent 6e44f16 commit 14b7dff

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/lib/components/UploadBtn.svelte

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
if (file?.type === "application/pdf") {
3535
// pdf upload
3636
dispatch("uploadpdf", file);
37-
} else {
37+
} else if(multimodal && file?.type.startsWith("image")){
3838
// image files for multimodal models
3939
files = Array.from(fileInput.files);
4040
}

0 commit comments

Comments
 (0)