Skip to content

feat: import picture if accessible#52

Open
tinect wants to merge 6 commits intoHEPTACOM:mainfrom
tinect:feat/addPictureImport
Open

feat: import picture if accessible#52
tinect wants to merge 6 commits intoHEPTACOM:mainfrom
tinect:feat/addPictureImport

Conversation

@tinect
Copy link
Copy Markdown

@tinect tinect commented Apr 1, 2026

Closes #51

Copy link
Copy Markdown
Member

@JoshuaBehrens JoshuaBehrens left a comment

Choose a reason for hiding this comment

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

I like the feature. Reminds me of shopware/shopware#474 . With that in mind there are some concerns about admin user data in the media storage. This will need a configuration on client level to control.

$this->mediaUploadService->uploadFromLocalPath(
$tempFile,
$context,
new MediaUploadParameters(id: $avatarId, fileName: $avatarId . '.jpg')
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

This is too much determined to be a jpg. Could be webp or png as well. Maybe the mime from the response can be forwarded here

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

uhhh, you are absolute correct with the format. I thought of it while checking its possiblities and then forgot it.

With configuration on client level you mean toggle for import picture if available?

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Yes exactly. This has to be optional and needs to be opt-in as it changes behaviour

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

@JoshuaBehrens Ready.

I just set the config to the default and Microsoft OIDC due to missing possiblities to test.
If you think, this should be fine, while it just follows OIDC rules, I can adopt it to the other OIDC providers.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

Feature - import/update picture as avatar

2 participants