From f68e81836bb518fb7aa8cf81780c8e92ee1ba715 Mon Sep 17 00:00:00 2001 From: Alice Gaudon Date: Mon, 22 Nov 2021 21:30:23 +0100 Subject: [PATCH] Allow forms to have a file upload enctype --- src/assets/views/utils/Form.svelte | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/assets/views/utils/Form.svelte b/src/assets/views/utils/Form.svelte index ff1e714..3ea80a3 100644 --- a/src/assets/views/utils/Form.svelte +++ b/src/assets/views/utils/Form.svelte @@ -14,6 +14,7 @@ export let isBoldSubmit: boolean = true; export let resetButton: boolean = false; export let confirm: string = undefined; + export let withFiles: boolean = false; const formId = nextAvailableFormId++; setContext('formId', formId); @@ -37,7 +38,7 @@ } -
+