laravel / framework

The Laravel Framework.
https://laravel.com
MIT License
32.69k stars 11.05k forks source link

AI and CDR files cannot be uploaded. #53494

Closed hmingv closed 2 weeks ago

hmingv commented 2 weeks ago

Laravel Version

10.33.0

PHP Version

8.1

Database Driver & Version

No response

Description

I can't upload AI and CDR files through Laravel. This is probably because Laravel (or maybe Symfony) guesses their file types wrongly.

image image

After testing, .ai files are recognized as application/pdf, and .cdr files are recognized as application/x-vnd.corel.zcf.draw.document+zip

Steps To Reproduce

You just need to try uploading the file and verify the mimetype through form validation.

crynobone commented 2 weeks ago

Hey there,

Unfortunately we don't support this version of the library anymore. Please check out our support policy on which versions we are currently supporting. Can you please try to upgrade to the latest version and see if your problem persists? If so, please open up a new issue and we'll help you out.

Thanks!

hmingv commented 2 weeks ago

Thanks for the reminder, so I created a new project today using laravel new demo-project.

I did a minimal test. I found that the problem still exists.

image image

hmingv commented 2 weeks ago

The code is very simple, and I didn’t make any changes to the project except for these two files and the .env file.

image image