framework icon indicating copy to clipboard operation
framework copied to clipboard

AI and CDR files cannot be uploaded.

Open hmingv opened this issue 1 year ago • 3 comments

Laravel Version

11.31.0

PHP Version

8.2

Database Driver & Version

No response

Description

From https://github.com/laravel/framework/issues/53494

Steps To Reproduce

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

hmingv avatar Nov 15 '24 00:11 hmingv

Isn't that @crynobone answered you already?

https://github.com/laravel/framework/issues/53494#issuecomment-2473054523

tisuchi avatar Nov 15 '24 10:11 tisuchi

I took his advice seriously, so I tested it with the latest Laravel version, but the problem still persisted. So I replicated the issue.

hmingv avatar Nov 15 '24 13:11 hmingv

I took his advice seriously, so I tested it with the latest Laravel version, but the problem still persisted. So I replicated the issue.

Hmm.. Get your point!

Interesting!

tisuchi avatar Nov 16 '24 12:11 tisuchi

Hey there, thanks for reporting this issue.

We'll need more info and/or code to debug this further. Can you please create a repository with the command below, commit the code that reproduces the issue as one separate commit on the main/master branch and share the repository here?

Please make sure that you have the latest version of the Laravel installer in order to run this command. Please also make sure you have both Git & the GitHub CLI tool properly set up.

laravel new bug-report --github="--public"

Do not amend and create a separate commit with your custom changes. After you've posted the repository, we'll try to reproduce the issue.

Thanks!

crynobone avatar Nov 22 '24 03:11 crynobone

Thank you for your response, I have already released a public repository

Here it is: https://github.com/hmingv/bug-report

hmingv avatar Nov 23 '24 01:11 hmingv

AI and CDRfile types are not included in the Apache MIME Type Registry.

To handle these file types, you can either extend your server's MIME type configuration or create a custom validation rule in your application.

https://laravel.com/docs/11.x/validation#rule-mimes

ahinkle avatar Nov 26 '24 04:11 ahinkle

Thanks @ahinkle

crynobone avatar Nov 27 '24 01:11 crynobone