diff --git a/Webserver/src/routes/image/+page.svelte b/Webserver/src/routes/image/+page.svelte index 0f28724..2a68d21 100644 --- a/Webserver/src/routes/image/+page.svelte +++ b/Webserver/src/routes/image/+page.svelte @@ -10,6 +10,13 @@ let imageURL: string | null, lastImage: File; let uploadData: UploadData; + async function placeImage() { + const fdata = new FormData(); + fdata.append('x', '0'); + fdata.append('y', '0'); + await post(fdata, 'image'); + } + async function sendImage(url: string) { const fdata = new FormData(); fdata.append('url', url); @@ -98,8 +105,13 @@
Sending image . . .
{uploadData.elapsed} seconds elapsed.
{:then} -Done!
-{uploadData.elapsed} seconds elapsed.
+ {#await placeImage()} +Placing image . . .
+{uploadData.elapsed} seconds elapsed.
+ {:then} +Done!
+{uploadData.elapsed} seconds elapsed.
+ {/await} {/await} {/await} {/if}