Only allow PDF for dnd uploads

This commit is contained in:
Jackson Harper 2022-11-22 17:51:30 +08:00
parent d34444bb7a
commit da04a4871f

View file

@ -909,6 +909,9 @@ function HomeFeedGrid(props: HomeFeedContentProps): JSX.Element {
}}
preventDropOnDocument={true}
noClick={true}
accept={{
'application/pdf': ['.pdf'],
}}
>
{({ getRootProps, getInputProps, acceptedFiles, fileRejections }) => (
<div {...getRootProps({ className: 'dropzone' })}>