fix: change photo max size (#1416)

This commit is contained in:
heheer 2024-05-09 16:31:56 +08:00 committed by GitHub
parent d4169bf066
commit af4c732d93
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -69,9 +69,9 @@ const MessageInput = ({
const url = await compressImgFileAndUpload({
type: MongoImageTypeEnum.chatImage,
file: file.rawFile,
maxW: 4329,
maxH: 4329,
maxSize: 1024 * 1024 * 5,
maxW: 4320,
maxH: 4320,
maxSize: 1024 * 1024 * 16,
// 7 day expired.
expiredTime: addDays(new Date(), 7),
shareId,