mirror of
https://github.com/danbulant/Portfolio
synced 2026-05-27 14:02:14 +00:00
feat: specify types and sizes for filedrop
This commit is contained in:
parent
919b44fd2a
commit
77e7c86520
1 changed files with 3 additions and 0 deletions
|
|
@ -33,6 +33,9 @@
|
||||||
</div>
|
</div>
|
||||||
<div class="flex-1 mt-6">
|
<div class="flex-1 mt-6">
|
||||||
<FileDrop
|
<FileDrop
|
||||||
|
multiple={false}
|
||||||
|
maxSize={filetype == 'PDF' ? 100_000_000 : 10_000_000}
|
||||||
|
accept={filetype == 'PDF' ? 'application/pdf' : 'application/octet-stream'}
|
||||||
on:filedrop={null}
|
on:filedrop={null}
|
||||||
on:filedragenter={dashAnimationStart}
|
on:filedragenter={dashAnimationStart}
|
||||||
on:filedragleave={dashAnimationStop}
|
on:filedragleave={dashAnimationStop}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue