Skip to content

Commit

Permalink
fix: change photo max size (#1416)
Browse files Browse the repository at this point in the history
  • Loading branch information
newfish-cmyk authored May 9, 2024
1 parent d4169bf commit af4c732
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions projects/app/src/components/ChatBox/MessageInput.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit af4c732

Please sign in to comment.