Skip to content

fix(api): align avatar upload contract#3318

Open
aofei wants to merge 1 commit into
goplus:devfrom
aofei:avatar-upload-contract
Open

fix(api): align avatar upload contract#3318
aofei wants to merge 1 commit into
goplus:devfrom
aofei:avatar-upload-contract

Conversation

@aofei

@aofei aofei commented Jun 29, 2026

Copy link
Copy Markdown
Member

Document avatar upload requirements as format and file size only, and state that uploaded avatars are normalized to 512x512 PNG. This keeps the public contract aligned with backend normalization instead of exposing storage protection limits as client requirements.

Add matching admin upload validation for PNG/JPEG and 5 MB files so the tool rejects unsupported inputs before sending them to the API.

gemini-code-assist[bot]

This comment was marked as resolved.

Document avatar upload requirements as format and file size only, and
state that uploaded avatars are normalized to 512x512 PNG. This keeps
the public contract aligned with backend normalization instead of
exposing storage protection limits as client requirements.

Add matching admin upload validation for PNG/JPEG and 5 MB files so the
tool rejects unsupported inputs before sending them to the API.

Signed-off-by: Aofei Sheng <aofei@aofeisheng.com>
@aofei aofei force-pushed the avatar-upload-contract branch from 6de6e7e to 8b4b86c Compare July 14, 2026 08:02
@aofei aofei marked this pull request as ready for review July 14, 2026 08:02
fennoai[bot]

This comment was marked as resolved.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant