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
symfony/mime v5.2.0 broken file upload #39225
Comments
Thank you. |
Unfortunately I am not an expert in debugging such kind of errors. All I can provide is that in Laravel I get the error
When I upload an image.
Hope it helps. i thought it might be a Laravel issue but when I downgrade symfony/mime to v5.1.9 everything works like normal. So I do not think it is a Laravel issue. |
Hm.. We are very much in the "Something is wrong" area. =) I need something more. It sounds like you have an image upload form and validation that it only accepts some specific extensions. But you get a validation error. I see on your validation rules you have Is there an |
I tracked the issue further to this file:
5.1: array:3 [
0 => "jpeg"
1 => "jpg"
2 => "jpe"
] 5.2: array:3 [
0 => "jpg"
1 => "jpeg"
2 => "jpe"
] |
Thank you @fragkp. You are correct. But that is fine, ie, there is no BC break and @mnaas code should not fail because of it. |
Yes I was investigating and found the same problem |
Thank you for the reports. @fragkp found the cause of this change and @NEGits fixed it in laravel/framework#35416 Awesome work! |
Not that I want to start a discussion around this @Nyholm but imo this is a change in behavior which should be considered a BC break. It's a gray area for sure. Anyway, I think we can work around this easily. Thanks for your work 👍 |
FTR, the actually merged PR for 6.x was laravel/framework#35419 |
Awesome! |
Symfony version(s) affected: symfony/mime v5.2.0
Description
Today I ran composer update for a project and found that file uploads in all forms broke. After investigating the problem I figured out that if I go back to symfony/mime v5.1.9 everything works again.
Our project uses Laravel 8 which in turn uses symfony/mime
The text was updated successfully, but these errors were encountered: