1
0
mirror of https://github.com/pocket-id/pocket-id.git synced 2026-02-16 22:14:12 +00:00

fix: allow images with uppercase file extension

This commit is contained in:
Elias Schneider
2025-06-10 10:51:46 +02:00
parent 9700afb9cb
commit 1bcb50edc3
3 changed files with 4 additions and 5 deletions

View File

@@ -820,7 +820,7 @@ func (s *OidcService) GetClientLogo(ctx context.Context, clientID string) (strin
}
func (s *OidcService) UpdateClientLogo(ctx context.Context, clientID string, file *multipart.FileHeader) error {
fileType := utils.GetFileExtension(file.Filename)
fileType := strings.ToLower(utils.GetFileExtension(file.Filename))
if mimeType := utils.GetImageMimeType(fileType); mimeType == "" {
return &common.FileTypeNotSupportedError{}
}