changed utils to check for 10MB size not 1MB

This commit is contained in:
Aster Fialla
2026-02-24 19:47:46 -05:00
parent efefcb69f4
commit a1e007448f

View File

@@ -30,7 +30,7 @@ u.checkImageFormatValidity = async function (imageUrl) {
try {
blobFile = await response.blob();
if (blobFile.size > 1000000 || !acceptableImages.includes(blobFile.type)) throw new Error(enums.err.PROPIC_FAILS_REQUIREMENTS);
if (blobFile.size > 10000000 || !acceptableImages.includes(blobFile.type)) throw new Error(enums.err.PROPIC_FAILS_REQUIREMENTS);
return true;
}