Fix: issue 3, max image size is 1mb
This commit is contained in:
@@ -131,11 +131,11 @@ const SpaceDetailsTwo = () => {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (file?.size && file?.size > 5 * 1024 * 1024) {
|
if (file?.size && file?.size > 1 * 1024 * 1024) {
|
||||||
// 5 MB limit
|
// 1 MB limit
|
||||||
showToast(
|
showToast(
|
||||||
globalDispatch,
|
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,
|
4000,
|
||||||
"ERROR"
|
"ERROR"
|
||||||
);
|
);
|
||||||
@@ -332,7 +332,7 @@ const SpaceDetailsTwo = () => {
|
|||||||
* Photographs of the space
|
* Photographs of the space
|
||||||
</h3>
|
</h3>
|
||||||
<p className='mb-8'>
|
<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)
|
(640*480)
|
||||||
</p>
|
</p>
|
||||||
<div className='mb-8 flex flex-col justify-center gap-x-2 gap-y-4 md:gap-5'>
|
<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