diff --git a/frontend/src/lib/components/apps/components/inputs/AppFileInput.svelte b/frontend/src/lib/components/apps/components/inputs/AppFileInput.svelte index a3e41595da..5f385b8c44 100644 --- a/frontend/src/lib/components/apps/components/inputs/AppFileInput.svelte +++ b/frontend/src/lib/components/apps/components/inputs/AppFileInput.svelte @@ -46,6 +46,8 @@ fileInput?.clearFiles() } } + + let files: File[] | undefined = undefined {#each Object.keys(css ?? {}) as key (key)} @@ -90,6 +92,7 @@ class={twMerge('w-full h-full', css?.container?.class, 'wm-file-input')} style={css?.container?.style} submittedText={submittedFileText} + bind:files > {text} diff --git a/frontend/src/lib/components/common/fileInput/FileInput.svelte b/frontend/src/lib/components/common/fileInput/FileInput.svelte index 46daea27bc..ba2f374b79 100644 --- a/frontend/src/lib/components/common/fileInput/FileInput.svelte +++ b/frontend/src/lib/components/common/fileInput/FileInput.svelte @@ -21,7 +21,7 @@ const dispatch = createEventDispatcher() let input: HTMLInputElement - let files: File[] | undefined = undefined + export let files: File[] | undefined = undefined async function onChange(fileList: FileList | null) { if (!fileList || !fileList.length) {