mirror of
https://github.com/omnivore-app/omnivore.git
synced 2026-03-11 08:54:26 +00:00
Merge pull request #1442 from omnivore-app/fix/pdf-upload-types
Only allow PDF for dnd uploads
This commit is contained in:
commit
d9cd0ee6a4
1 changed files with 3 additions and 0 deletions
|
|
@ -909,6 +909,9 @@ function HomeFeedGrid(props: HomeFeedContentProps): JSX.Element {
|
|||
}}
|
||||
preventDropOnDocument={true}
|
||||
noClick={true}
|
||||
accept={{
|
||||
'application/pdf': ['.pdf'],
|
||||
}}
|
||||
>
|
||||
{({ getRootProps, getInputProps, acceptedFiles, fileRejections }) => (
|
||||
<div
|
||||
|
|
|
|||
Loading…
Reference in a new issue