Scale up as you grow — whether you're running one virtual machine or ten thousand.

From GPU-powered inference and Kubernetes to managed databases and storage, get everything you need to build, scale, and deploy intelligent applications.

I am getting the following error:
Missing required client configuration options: region: (string) A “region” configuration value is required for the “s3” service (e.g., “us-west-2”).
Here is my setup (XXX to hide my creds):
.env file:
DO_SPACES_KEY=XXXXX
DO_SPACES_SECRET=XXXX
DO_SPACES_ENDPOINT=https://nyc3.digitaloceanspaces.com
DO_SPACES_REGION=nyc3
DO_SPACES_BUCKET=XXXX
filesystems.php file (under the disks):
'spaces' => [
'driver' => 's3',
'key' => env('XXXXX'),
'secret' => env('XXXXX'),
'endpoint' => env('https://nyc3.digitaloceanspaces.com'),
'region' => env('nyc3'),
'bucket' => env('XXXXXX'),
],
in the view file:
function addDocument(Request $req, $projId)
{
$validatedData = $req->validate([
'uploadFile' => 'required'
]);
$image = $req->file('uploadFile');
$file_name = pathinfo($image->getClientOriginalName(), PATHINFO_FILENAME);
// Get the currently authenticated user...
$user = \Auth::user();
// Get the currently authenticated user's ID...
$uid = \Auth::id();
$folder = $req->input('folder');
$folderId = \DB::table('foldernames')->where('name',$folder)->where('common',1)->value('fid');
if (!$folderId) {
$folderId = \DB::table('foldernames')->where('name',$folder)->where('userId',$uid)->value('fid');
}
$input['imagename'] = $file_name.'_'.time().'.'.$image->getClientOriginalExtension();
//$destinationPath = public_path('/images');
//$image->move($destinationPath, $input['imagename']);
$destinationPath = $image->store('/', 'spaces');
Storage::setVisibility($destinationPath, 'public');
$data = array('fid'=>$folderId,'fileLoc'=>$input['imagename'],'projId'=>$projId);
\DB::table('documents')->insert($data);
return back();
}
As you can see in the view, I try to store the image on the space and then store the path in the DB which would represent the path to the space.
I cannot get this error to go away; do you see any issues?
Thanks!
indranil
doug.landau
ralph1
AI-LastWish
newuser23
Brett Bibby
a9124199d01b441190d9a64b3bf57e
nandaf89840b3eb242fe5d0371
MassiveGrayStarfish
Stian Mathisen
Cosmo Mathieu
fmillion