[PR #1246] [MERGED] Only allow image/png mimetype for Avatar #1272

Closed
opened 2026-02-05 18:08:49 +03:00 by OVERLORD · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/pelican-dev/panel/pull/1246
Author: @rmartinoscar
Created: 4/13/2025
Status: Merged
Merged: 4/13/2025
Merged by: @rmartinoscar

Base: mainHead: fix/avatarMimetype


📝 Commits (1)

  • ae6da60 Only allow image/png mimetype

📊 Changes

1 file changed (+1 additions, -0 deletions)

View changed files

📝 app/Filament/Pages/Auth/EditProfile.php (+1 -0)

📄 Description

image
702a6bb750/app/Extensions/Avatar/Providers/LocalAvatarProvider.php (L18-L23)

Ideally we'd support all images format but this is good enough for now


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/pelican-dev/panel/pull/1246 **Author:** [@rmartinoscar](https://github.com/rmartinoscar) **Created:** 4/13/2025 **Status:** ✅ Merged **Merged:** 4/13/2025 **Merged by:** [@rmartinoscar](https://github.com/rmartinoscar) **Base:** `main` ← **Head:** `fix/avatarMimetype` --- ### 📝 Commits (1) - [`ae6da60`](https://github.com/pelican-dev/panel/commit/ae6da6097d9b025b2b278e020045ebdf60991bdb) Only allow `image/png` mimetype ### 📊 Changes **1 file changed** (+1 additions, -0 deletions) <details> <summary>View changed files</summary> 📝 `app/Filament/Pages/Auth/EditProfile.php` (+1 -0) </details> ### 📄 Description ![image](https://github.com/user-attachments/assets/0dede41e-fe4c-42a2-900f-caabdc721e21) https://github.com/pelican-dev/panel/blob/702a6bb750ae8acb818d31ad827591970a136f10/app/Extensions/Avatar/Providers/LocalAvatarProvider.php#L18-L23 Ideally we'd support all images format but this is good enough for now --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
OVERLORD added the pull-request label 2026-02-05 18:08:49 +03:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/panel-pelican-dev#1272