Skip to content

Commit

Permalink
Update src/Gaufrette/Adapter/AsyncAwsS3.php
Browse files Browse the repository at this point in the history
Co-authored-by: Pierre PLAZANET <pierre.plazanet@knplabs.com>
  • Loading branch information
KevinArtus and PedroTroller authored Oct 30, 2023
1 parent 94d89cd commit 3ce2ceb
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/Gaufrette/Adapter/AsyncAwsS3.php
Original file line number Diff line number Diff line change
Expand Up @@ -314,6 +314,9 @@ protected function computeKey(string $path): string
return ltrim(substr($path, strlen($this->options['directory'])), '/');
}

/**
* @param string|resource $content
*/
private function guessContentType(mixed $content): bool|string
{
$fileInfo = new \finfo(FILEINFO_MIME_TYPE);
Expand Down

0 comments on commit 3ce2ceb

Please sign in to comment.