Fix: issue 3, max image size is 1mb
This commit is contained in:
@@ -131,11 +131,11 @@ const SpaceDetailsTwo = () => {
|
||||
return;
|
||||
}
|
||||
|
||||
if (file?.size && file?.size > 5 * 1024 * 1024) {
|
||||
// 5 MB limit
|
||||
if (file?.size && file?.size > 1 * 1024 * 1024) {
|
||||
// 1 MB limit
|
||||
showToast(
|
||||
globalDispatch,
|
||||
"One or more of the image is too large. Max size is 5 MB.",
|
||||
"One or more of the image is too large. Max size is 1 MB.",
|
||||
4000,
|
||||
"ERROR"
|
||||
);
|
||||
@@ -332,7 +332,7 @@ const SpaceDetailsTwo = () => {
|
||||
* Photographs of the space
|
||||
</h3>
|
||||
<p className='mb-8'>
|
||||
file type (jpeg/png/svg), max size (5MB), suggest resolution
|
||||
file type (jpeg/png/svg), max size (1MB), suggest resolution
|
||||
(640*480)
|
||||
</p>
|
||||
<div className='mb-8 flex flex-col justify-center gap-x-2 gap-y-4 md:gap-5'>
|
||||
|
||||
Reference in New Issue
Block a user