feat: specify types and sizes for filedrop

This commit is contained in:
EETagent 2022-12-02 15:50:48 +01:00
parent 919b44fd2a
commit 77e7c86520

View file

@ -33,6 +33,9 @@
</div>
<div class="flex-1 mt-6">
<FileDrop
multiple={false}
maxSize={filetype == 'PDF' ? 100_000_000 : 10_000_000}
accept={filetype == 'PDF' ? 'application/pdf' : 'application/octet-stream'}
on:filedrop={null}
on:filedragenter={dashAnimationStart}
on:filedragleave={dashAnimationStop}