Use real file names when download files from dropzones

This commit is contained in:
Andrew Kingston 2022-08-15 11:37:30 +01:00
parent 4045337bb7
commit 05bfd86b91
1 changed files with 7 additions and 1 deletions

View File

@ -133,7 +133,13 @@
<div class="title">
<div class="filename">
{#if selectedUrl}
<Link href={selectedUrl}>{selectedImage.name}</Link>
<Link
target="_blank"
download={selectedImage.name}
href={selectedUrl}
>
{selectedImage.name}
</Link>
{:else}
{selectedImage.name}
{/if}