Skip to content

Commit

Permalink
Merge pull request #547 from AlexVanderbist/bugfix-s3-storage
Browse files Browse the repository at this point in the history
Use filepath instead of pointer for getting remote headers
  • Loading branch information
freekmurze committed Mar 6, 2017
2 parents 3714e2e + a6159f0 commit 89e92b2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Filesystem/DefaultFilesystem.php
Expand Up @@ -57,7 +57,7 @@ public function copyToMediaLibrary(string $pathToFile, Media $media, bool $conve
$this->filesystem
->disk($media->disk)
->getDriver()
->put($destination, $file, $this->getRemoteHeadersForFile($file));
->put($destination, $file, $this->getRemoteHeadersForFile($pathToFile));

fclose($file);
}
Expand Down

0 comments on commit 89e92b2

Please sign in to comment.