I am trying to setup my Laravel application to upload to Backblaze B2 using the S3 Compatible API. I've setup my .env items
AWS_ACCESS_KEY_ID=key1
AWS_SECRET_ACCESS_KEY=key2
AWS_DEFAULT_REGION=us-west-001
AWS_BUCKET=bucketname
AWS_ENDPOINT=s3.us-west-001.backblazeb2.com
When I try to upload using this Storage::disk('s3')->put('/images/covers', $request->file('thumbnail'));
I receive the following error
Could not resolve host: bucketname. for http://bucketname./bucketname/
images/covers/rbvl5SL3SiEzxsaUfEG9uMW7TIAPPu9gaFNWxlbG.jpg"
I'm unsure as to where to proceed. I tried changing the AWS_ENDPOINT
to include my bucket name,, but didn't change anything.
Try this:
AWS_URL=bucketname.s3.us-west-001.backblazeb2.com
AWS_ENDPOINT=https://s3.us-west-001.backblazeb2.com