allow only pdf upload (clientside)

This commit is contained in:
Timur Ercan
2023-03-26 20:07:58 +02:00
parent c655cb52ad
commit 4bb5064477
2 changed files with 2 additions and 0 deletions

View File

@ -80,6 +80,7 @@ const DashboardPage: NextPageWithLayout = (props: any) => {
<input <input
id="fileUploadHelper" id="fileUploadHelper"
type="file" type="file"
accept="application/pdf"
onChange={(event: any) => { onChange={(event: any) => {
uploadDocument(event); uploadDocument(event);
}} }}

View File

@ -420,6 +420,7 @@ const DocumentsPage: NextPageWithLayout = (props: any) => {
<input <input
id="fileUploadHelper" id="fileUploadHelper"
type="file" type="file"
accept="application/pdf"
onChange={(event: any) => { onChange={(event: any) => {
uploadDocument(event); uploadDocument(event);
}} }}