Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: increase image upload limit to 50mb #2951

Merged
merged 1 commit into from
May 26, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,8 @@ const useUploadAttachments = () => {
const isVideo = file.type.includes('video');
const isAudio = file.type.includes('audio');

if (isImage && file.size > 10000000) {
toast.error(t`Image size should be less than 10MB`);
if (isImage && file.size > 50000000) {
toast.error(t`Image size should be less than 50MB`);
return false;
}

Expand Down
4 changes: 2 additions & 2 deletions apps/web/src/locales/en/messages.po
Original file line number Diff line number Diff line change
Expand Up @@ -2868,8 +2868,8 @@ msgid "total follows"
msgstr "total follows"

#: src/components/utils/hooks/useUploadAttachments.tsx
msgid "Image size should be less than 10MB"
msgstr ""
msgid "Image size should be less than 50MB"
msgstr "Image size should be less than 50MB"

#: src/components/utils/hooks/useUploadAttachments.tsx
msgid "Video size should be less than 200MB"
Expand Down
3 changes: 1 addition & 2 deletions apps/web/src/locales/fr/messages.po
Original file line number Diff line number Diff line change
Expand Up @@ -2868,7 +2868,7 @@ msgid "total follows"
msgstr ""

#: src/components/utils/hooks/useUploadAttachments.tsx
msgid "Image size should be less than 10MB"
msgid "Image size should be less than 50MB"
msgstr ""

#: src/components/utils/hooks/useUploadAttachments.tsx
Expand Down Expand Up @@ -2919,4 +2919,3 @@ msgstr ""
#: src/pages/500.tsx
msgid "We track these errors automatically, but if the problem persists feel free to contact us. In the meantime, try refreshing."
msgstr ""

5 changes: 2 additions & 3 deletions apps/web/src/locales/ru/messages.po
Original file line number Diff line number Diff line change
Expand Up @@ -2868,8 +2868,8 @@ msgid "total follows"
msgstr "всего подписок"

#: src/components/utils/hooks/useUploadAttachments.tsx
msgid "Image size should be less than 10MB"
msgstr "Размер изображения должен быть меньше 10MB"
msgid "Image size should be less than 50MB"
msgstr ""

#: src/components/utils/hooks/useUploadAttachments.tsx
msgid "Video size should be less than 200MB"
Expand Down Expand Up @@ -2919,4 +2919,3 @@ msgstr "Похоже, что-то пошло не так!"
#: src/pages/500.tsx
msgid "We track these errors automatically, but if the problem persists feel free to contact us. In the meantime, try refreshing."
msgstr "Мы автоматически отслеживаем эти ошибки, но если проблема не устранена, не стесняйтесь обращаться к нам. А пока попробуйте обновить страницу."

5 changes: 2 additions & 3 deletions apps/web/src/locales/ta/messages.po
Original file line number Diff line number Diff line change
Expand Up @@ -2868,8 +2868,8 @@ msgid "total follows"
msgstr "மொத்த பின்பற்றுபவர்கள்"

#: src/components/utils/hooks/useUploadAttachments.tsx
msgid "Image size should be less than 10MB"
msgstr "படத்தின் அளவு 10MB க்கும் குறைவாக இருக்க வேண்டும்"
msgid "Image size should be less than 50MB"
msgstr ""

#: src/components/utils/hooks/useUploadAttachments.tsx
msgid "Video size should be less than 200MB"
Expand Down Expand Up @@ -2919,4 +2919,3 @@ msgstr "ஏதோ தவறாகிவிட்டது போல் தெர
#: src/pages/500.tsx
msgid "We track these errors automatically, but if the problem persists feel free to contact us. In the meantime, try refreshing."
msgstr "இந்தப் பிழைகளைத் தானாகக் கண்காணிக்கிறோம், ஆனால் சிக்கல் தொடர்ந்தால், எங்களைத் தொடர்பு கொள்ளலாம். இதற்கிடையில், புதுப்பித்து முயற்சிக்கவும்."

5 changes: 2 additions & 3 deletions apps/web/src/locales/zh/messages.po
Original file line number Diff line number Diff line change
Expand Up @@ -2868,8 +2868,8 @@ msgid "total follows"
msgstr ""

#: src/components/utils/hooks/useUploadAttachments.tsx
msgid "Image size should be less than 10MB"
msgstr "图片尺寸应小于 10MB"
msgid "Image size should be less than 50MB"
msgstr ""

#: src/components/utils/hooks/useUploadAttachments.tsx
msgid "Video size should be less than 200MB"
Expand Down Expand Up @@ -2919,4 +2919,3 @@ msgstr "系统似乎出现了故障!"
#: src/pages/500.tsx
msgid "We track these errors automatically, but if the problem persists feel free to contact us. In the meantime, try refreshing."
msgstr "我们会自动追踪这些错误,但如果问题仍然存在,请随时与我们联系。 与此同时,您可以尝试刷新页面。"

Loading