File tree Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Original file line number Diff line number Diff line change 22
33namespace Tapp \LaravelUppyS3MultipartUpload \Http \Controllers ;
44
5+ use Aws \Credentials \Credentials ;
56use Aws \S3 \S3Client ;
67use Illuminate \Http \Request ;
78use Illuminate \Http \Response ;
@@ -16,14 +17,12 @@ class UppyS3MultipartController extends Controller
1617
1718 public function __construct ()
1819 {
20+ $ credentials = new Credentials (config ('filesystems.disks.s3.key ' ), config ('filesystems.disks.s3.secret ' ));
1921 $ this ->client = new S3Client ([
2022 'version ' => 'latest ' ,
2123 'region ' => config ('filesystems.disks.s3.region ' ),
2224 'use_accelerate_endpoint ' => config ('uppy-s3-multipart-upload.s3.use_accelerate_endpoint ' ),
23- 'credentials ' => [
24- 'key ' => config ('filesystems.disks.s3.key ' ),
25- 'secret ' => config ('filesystems.disks.s3.secret ' ),
26- ]
25+ 'credentials ' => $ credentials ,
2726 ]);
2827
2928 $ this ->bucket = config ('filesystems.disks.s3.bucket ' );
You can’t perform that action at this time.
0 commit comments