Resolved Document upload size limit & email attachments

This commit is contained in:
Patrick Fic
2021-04-21 15:26:38 -07:00
parent 09e1ab7f83
commit e57f4b7382
5 changed files with 8 additions and 7 deletions

View File

@@ -55,7 +55,6 @@ export function DocumentsUploadComponent({
multiple={true}
fileList={fileList}
onChange={(f) => {
console.log(`f`, f);
if (f.event && f.event.percent === 100) handleDone(f.file.uid);
setFileList(f.fileList);
}}

View File

@@ -134,7 +134,7 @@ export const uploadToCloudinary = async (
type: fileType,
extension: extension,
bodyshopid: bodyshop.id,
size: file.size || cloudinaryUploadResponse.data.bytes,
size: cloudinaryUploadResponse.data.bytes || file.size,
},
],
},