rev: batasan maximal upload file

Deskripsi:
- project, task, dan dokumen divisi maximal 100mb
- user profile dan banner desa maximal 10mb

nb: di server blm bisa

NO Issues
This commit is contained in:
amel
2025-01-13 10:50:55 +08:00
parent 3125cd8b82
commit 98c815fa35
10 changed files with 22 additions and 22 deletions

View File

@@ -335,10 +335,10 @@ export default function CreateTask() {
setListFile([...listFile, { name: files[0].name, extension: files[0].type.split("/")[1] }])
}}
activateOnClick={false}
maxSize={3 * 1024 ** 2}
maxSize={100 * 1024 ** 2}
accept={['image/png', 'image/jpeg', 'image/heic', 'application/pdf', 'application/msword', 'application/vnd.openxmlformats-officedocument.wordprocessingml.document', 'application/vnd.ms-excel', 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet']}
onReject={(files) => {
return toast.error('File yang diizinkan: .csv, .png, .jpg, .heic, .pdf, .doc, .docx, .xls, .xlsx dengan ukuran maksimal 3 MB')
return toast.error('File yang diizinkan: .csv, .png, .jpg, .heic, .pdf, .doc, .docx, .xls, .xlsx dengan ukuran maksimal 100 MB')
}}
></Dropzone>