Fixed bad s3 stock url creation

This commit is contained in:
Dan Brown 2015-12-08 21:01:37 +00:00
parent c88096b7e2
commit 32d5b12d27

View File

@ -237,7 +237,7 @@ class ImageRepo
// Get the standard public s3 url if s3 is set as storage type
if ($storageUrl == false && env('STORAGE_TYPE') === 's3') {
$storageDetails = config('filesystems.disks.s3');
$storageUrl = 'https://s3-' . $storageDetails['region'] . '.amazonaws.com/' . $storageDetails['bucket'] . $filePath;
$storageUrl = 'https://s3-' . $storageDetails['region'] . '.amazonaws.com/' . $storageDetails['bucket'];
}
$this->storageUrl = $storageUrl;