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

View File

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