allow only pdf upload (clientside)
This commit is contained in:
@@ -80,6 +80,7 @@ const DashboardPage: NextPageWithLayout = (props: any) => {
|
||||
<input
|
||||
id="fileUploadHelper"
|
||||
type="file"
|
||||
accept="application/pdf"
|
||||
onChange={(event: any) => {
|
||||
uploadDocument(event);
|
||||
}}
|
||||
|
||||
@@ -420,6 +420,7 @@ const DocumentsPage: NextPageWithLayout = (props: any) => {
|
||||
<input
|
||||
id="fileUploadHelper"
|
||||
type="file"
|
||||
accept="application/pdf"
|
||||
onChange={(event: any) => {
|
||||
uploadDocument(event);
|
||||
}}
|
||||
|
||||
Reference in New Issue
Block a user