Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[FO - Suivi] Différence entre extension et mimetype du fichier #3727

Open
wants to merge 2 commits into
base: develop
Choose a base branch
from

Conversation

numew
Copy link
Collaborator

@numew numew commented Feb 18, 2025

Ticket

#3719

Description

Utilisation du mimeType dans le message d'erreur de format des fichier plutôt que leur extension

Tests

  • Renommer un fichier heic en png et l'uploader, s'assurer que le message d'erreur indique le bon format

@numew numew changed the base branch from main to develop February 18, 2025 14:05
@numew numew requested review from emilschn, hmeneuvrier and sfinx13 and removed request for hmeneuvrier February 18, 2025 14:06
@@ -130,6 +122,25 @@ public function process(
return $fileList;
}

private function getFileFormatErrorMessage(UploadedFile $file, string $acceptedExtensions): string
Copy link
Collaborator

Choose a reason for hiding this comment

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

il faudrait le faire aussi dans UnsupportedFileFormatException, non ?

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.

2 participants