Skip to content

Commit

Permalink
Merge pull request andersundsehr#114 from mogic-le/mimetypefix
Browse files Browse the repository at this point in the history
[BUGFIX] Make sure mime type is available when no property is specified
  • Loading branch information
weakbit authored Jan 4, 2024
2 parents d9254c5 + effe0ae commit 24debc1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Classes/Driver/AmazonS3Driver.php
Original file line number Diff line number Diff line change
Expand Up @@ -285,7 +285,7 @@ public function getRootLevelFolder()
*/
public function getFileInfoByIdentifier($fileIdentifier, array $propertiesToExtract = [])
{
if (in_array('mimetype', $propertiesToExtract)) {
if (count($propertiesToExtract) === 0 || in_array('mimetype', $propertiesToExtract)) {
// force to reload the infos from S3 if the mime type was requested
$this->flushMetaInfoCache($fileIdentifier);
}
Expand Down

0 comments on commit 24debc1

Please sign in to comment.