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 3cb1ae2bd0
commit 47462eab4d
1 changed files with 7 additions and 1 deletions

View File

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