You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I’m definitely not sure, but I ran into a problem, when downloading a file it doesn’t determine the exact extension by Mime, in my code, an error was made in the Mime source in the code.
If so, let me know I will fix it.
Now you can upload any file simply by changing the extension from .php to .png and the validator will not notice
Since actual MIME type detection is imperfect I think the choice was to go with the extension since it is a simpler and more predictable solution. I'll see if @lonnieezell has anything else to say.
CodeIgniter4/system/HTTP/Files/UploadedFile.php
Line 363 in 84b9cc7
I’m definitely not sure, but I ran into a problem, when downloading a file it doesn’t determine the exact extension by Mime, in my code, an error was made in the Mime source in the code.
If so, let me know I will fix it.
Now you can upload any file simply by changing the extension from .php to .png and the validator will not notice
Fix?$this->getMimeType(), $ .....
return Mimes::guessExtensionFromType(
The text was updated successfully, but these errors were encountered: