Skip to content

Commit

Permalink
Pass content_type when updating portrait
Browse files Browse the repository at this point in the history
  • Loading branch information
davisagli committed Sep 21, 2023
1 parent 987e8c9 commit 8affcee
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/plone/restapi/services/users/update.py
Original file line number Diff line number Diff line change
Expand Up @@ -185,6 +185,6 @@ def set_member_portrait(self, user, portrait):
# frontend
scaled = data

portrait = Image(id=safe_id, file=scaled, title="")
portrait = Image(id=safe_id, file=scaled, title="", content_type=content_type)
membertool = getToolByName(self, "portal_memberdata")
membertool._setPortrait(portrait, safe_id)

0 comments on commit 8affcee

Please sign in to comment.