Category : amazon-s3

In Laravel filesystems you have the standard s3 details like below: ‘s3’ => [ ‘driver’ => ‘s3’, ‘key’ => env(‘AWS_ACCESS_KEY_ID’, ‘your-key’), ‘secret’ => env(‘AWS_SECRET_ACCESS_KEY’, ‘your-secret’), ‘region’ => env(‘AWS_DEFAULT_REGION’, ‘your-region’), ‘bucket’ => env(‘AWS_BUCKET’, ‘your-bucket’), ‘url’ => env(‘AWS_URL’), ‘endpoint’ => env(‘AWS_ENDPOINT’), ], What I am trying to establish is having 2 disks listed in my filesystems, one ..

Read more

I am working with php s3 sdk with MFA account. How I can get TokenCode at run time. $stsClient = new StsClient([ ‘region’ => ‘eu-west-1’, ‘version’ => ‘latest’, ‘credentials’ => [ ‘key’ => ‘dsfasdfas’, ‘secret’ => ‘dsfadsfad’ ] ]); $assumeRoleObject = $stsClient->assumeRole([ ‘RoleArn’ => "arn:aws:iam::1234567:user/username", ‘RoleSessionName’ => ‘test’, ‘DurationSeconds’ => 3600, ‘SerialNumber’ => "23434243243", ‘TokenCode’ ..

Read more

Error executing "PutObject" on "https://s3.us-east-2.amazonaws.com/profile_pictures/61e15d8706062-1642159495/cartnotification.PNG"; AWS HTTP error: cURL error 60: SSL certificate problem: unable to get local issuer certificate (see https://curl.haxx.se/libcurl/c/libcurl-errors.html) for https://s3.us-east-2.amazonaws.com/profile_pictures/61e15d8706062-1642159495/cartnotification.PNG Am getting the above error when trying to upload a file to s3 from my local.I tried clearing cache. I’ve already gone through many google links.But couldn’t solve the issue.How can ..

Read more

When trying to upload a 55 minute long video with 86.6MB size, from laravel using: $video = $request->file("video"); $path = Storage::disk(‘s3’)->put("videos", $video); $path = Storage::disk(‘s3’)->url($path); return response()->json(["msg" => "success!","path"=>$path]); After a certain time I get "Service Unavailable" I have modified my php.ini by raising the maximum execution time and others, but it has not had ..

Read more

I’m using this package: https://async-aws.com/integration/laravel.html#illuminate-filesystem But it seems using s3 and async-aws-s3 as filesystem driver have no difference. I’ve tested uploading using Storage::put() with large and small file size and the execution time is the same (15mb around 1.6sec) – (0.5mb around 0.5sec).. Am I using this correctly? Is changing async-aws-s3 enough to make Storage::put() ..

Read more

Je peux créer une connexion via : $s3Client = new S3Client([‘profile’ => ‘default’,’endpoint’ =>’http://storage.sbg.cloud.ovh.net’, ‘region’ => ‘SBG’,’version’ => latest’,’credentials’ => array(‘key’ => $key,’secret’ => $secret,)]); et lister mes containers existants sans soucis donc la connexion est OK: $result = $s3Client->listBuckets();var_dump($result);) mais je n arrive pas a créer de nouveau container avec : $s3Client->createBucket(array(‘Bucket’ => ‘cont1’,)); ..

Read more

I’m copying files from one S3 bucket to another with call like this: $s3->copyObject([ ‘Bucket’ => $targetBucket, ‘Key’ => $targetFilePath, ‘CopySource’ => "{$sourceBucket}/{$sourceFilePath}", ]); And generally that works, but some files on S3 buckets have some special characters in their names or in directory names. Characters like ├╢ or ├╝ … they supposed to be ..

Read more

How to changes php config & post_max_size setting in laravel vapor? I’m facing error 413 Request Entity Too Large when trying to upload image on AWS S3. Application is using Angular as frontend & Laravel is used for backend API. I’m able to upload image size upto 200-250 KB on AWS-S3 but can’t able to ..

Read more