Closed omergoktas closed 5 months ago
I can't find where the documentation for the mimeDetector says how we are supposed to read that array https://github.com/SoftCreatR/php-mime-detector#usage
@imorland you might want to take a look at this ?
@omergoktas Are you still running into the same issue on the latest version of fof/upload
?
@omergoktas Are you still running into the same issue on the latest version of
fof/upload
?
This was sometime ago, I don't have flarum anymore. I can close the issue if you like.
https://github.com/FriendsOfFlarum/upload/blob/60bd5ead414893b39d03dd0748e54dae190afded/src/Commands/UploadHandler.php#L87 I think there should be a check for the key 'mime' in the map
uploadFileData
before accessing the value since the map returned fromgetFileType()
might be empty. I'm getting an error when uploading some png file:I don't know whether its a valid situation or not to have files with unknown mime types. Or maybe my setup is not well built thus it cannot read mime types of images.