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:
@@ -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>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user