Skip to content

armgit / VERT

Public Imported from GitHub
0

The next-generation file converter. Open source, fully local* and free forever.

fix: uploading file not navigating to /convert, again

JovannMC8d849d323235
diff --git a/src/lib/components/functional/Uploader.svelte b/src/lib/components/functional/Uploader.svelte
index 0cafd90..684c5c5 100644
--- a/src/lib/components/functional/Uploader.svelte
+++ b/src/lib/components/functional/Uploader.svelte
@@ -21,11 +21,11 @@
fileInput.click();
};
- const handleFileChange = () => {
+ const handleFileChange = async () => {
if (!fileInput) return;
const oldLength = files.files.length;
- files.add(fileInput.files);
- if (oldLength !== files.files.length) goto("/convert");
+ await files.addAsync(fileInput.files);
+ if (files.files.length !== oldLength) goto("/convert");
};
onMount(() => {