]> BookStack Code Mirror - bookstack/commitdiff
Fixed bad s3 stock url creation
authorDan Brown <redacted>
Tue, 8 Dec 2015 21:01:37 +0000 (21:01 +0000)
committerDan Brown <redacted>
Tue, 8 Dec 2015 21:01:37 +0000 (21:01 +0000)
app/Repos/ImageRepo.php

index 3dce7e94b9517a55eea1672562756f8b9ab499d1..2699b9e971cb7a0d3b9a21f97b9bed03fcb4b1c3 100644 (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;