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

fix: reject profile photos bigger than 1MB #1377

Merged
merged 1 commit into from
Dec 15, 2023

Conversation

kabaros
Copy link
Contributor

@kabaros kabaros commented Dec 11, 2023

This sets a maximum size of 1MB for profile photos uploads. Fixes DHIS2-10828.

image

@kabaros kabaros requested review from KaiVandivier and a team December 11, 2023 15:27
@dhis2-bot
Copy link
Contributor

dhis2-bot commented Dec 11, 2023

🚀 Deployed on https://pr-1377--dhis2-user-profile.netlify.app

Copy link
Member

@tomzemp tomzemp left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good. Do we need another ticket for adding keyMaxAvatarSizeInMB then? Or should we just assume 1MB is good enough until we add that system setting?

@kabaros kabaros force-pushed the DHIS2-10828/limit-avatar-size branch from ff59846 to ba0c55c Compare December 11, 2023 16:32
Copy link
Contributor

@KaiVandivier KaiVandivier left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice 👍

(For posterity, here's some discussion about the file size)

@kabaros kabaros force-pushed the DHIS2-10828/limit-avatar-size branch from ba0c55c to 5d2a203 Compare December 15, 2023 11:16
@kabaros kabaros merged commit 8f1d8e9 into master Dec 15, 2023
9 checks passed
@kabaros kabaros deleted the DHIS2-10828/limit-avatar-size branch December 15, 2023 11:25
@dhis2-bot
Copy link
Contributor

🎉 This PR is included in version 30.4.6 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants