mirror of
https://github.com/danbulant/Portfolio
synced 2026-05-24 12:35:31 +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 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}
|
||||
|
|
|
|||
Loading…
Reference in a new issue