diff --git a/src/lib/components/filePicker.svelte b/src/lib/components/filePicker.svelte index c3a964a96..3756f6b9c 100644 --- a/src/lib/components/filePicker.svelte +++ b/src/lib/components/filePicker.svelte @@ -1,5 +1,5 @@ + +
+ {#if label} + + {/if} +
+
+
+
+
+
+ Select a file to upload + Select a file to upload +
+
+
+ Max file size: 1MB + +
+ + {#if value} + {@const fileSize = humanFileSize(value.sizeOriginal)} +
    +
  • +
  • +
+ {/if} +
+
+
+ +{#if show} + +{/if} diff --git a/src/routes/console/project-[project]/messaging/wizard/pushFormList.svelte b/src/routes/console/project-[project]/messaging/wizard/pushFormList.svelte index 53c48900c..6565da45b 100644 --- a/src/routes/console/project-[project]/messaging/wizard/pushFormList.svelte +++ b/src/routes/console/project-[project]/messaging/wizard/pushFormList.svelte @@ -45,6 +45,7 @@ import { sdk } from '$lib/stores/sdk'; import PushPhone from '../pushPhone.svelte'; import { onMount } from 'svelte'; + import InputFilePicker from '$lib/elements/forms/inputFilePicker.svelte'; let showCustomId = false; let showTest = false; @@ -148,11 +149,17 @@
- - - + + + + + + + + +
    {#each customData || [] as _, rowIndex}