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

Validate user uploaded image #1123

Merged
merged 2 commits into from
Jun 29, 2022
Merged

Conversation

cquintana92
Copy link
Collaborator

This PR adds the following changes:

  1. A new image_validation module that allows us to perform image format detection on arbitrary data, and restrict the types we accept.
  2. A check on the user profile picture upload endpoint that performs the image format verification, and prevents the user from uploading files that are not images of one of the accepted formats.

@cquintana92 cquintana92 force-pushed the chore/validate-user-uploaded-image branch from d49fb85 to b06fbc7 Compare June 29, 2022 12:54
@cquintana92 cquintana92 added the enhancement New feature or request label Jun 29, 2022
@acasajus acasajus merged commit 9abb8aa into master Jun 29, 2022
@acasajus acasajus deleted the chore/validate-user-uploaded-image branch June 29, 2022 13:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants