iway1
05/05/2023, 3:55 AMthangnm
05/05/2023, 4:03 PMDanCodes
05/05/2023, 5:13 PMTony!
05/05/2023, 5:24 PMWalshy | Pages
05/05/2023, 5:25 PMWalshy | Pages
05/05/2023, 5:25 PMJames
05/05/2023, 5:27 PMDanCodes
05/05/2023, 5:27 PMDanCodes
05/05/2023, 5:36 PMSid | R2
05/05/2023, 8:44 PMSid | R2
05/05/2023, 8:48 PMHaukur
05/05/2023, 9:55 PMJames
05/05/2023, 9:58 PMthangnm
05/06/2023, 1:52 AM'disks' => [
's3' => [
'driver' => 's3',
'key' => env('R2_ACCESS_KEY_ID'),
'secret' => env('R2_SECRET_ACCESS_KEY'),
'region' => env('R2_DEFAULT_REGION'),
'bucket' => env('R2_BUCKET'),
'url' => env('R2_URL'),
'endpoint' => env('R2_URL'),
],
],
Code try to copy an object
try {
$s3 = Storage::disk('s3');
$client = $s3->getDriver()->getAdapter();
$client->getClient()->getCommand('CopyObject', [
'Bucket' => 'thangnm',
'Key' => 'tmp/2023/5/5/c48df6b206a58d0360c55f3932260fd6.png',
'CopySource' => 'p/2251799814000360/c48df6b206a58d0360c55f3932260fd6.png'
]);
} catch (Throwable $ex) {
var_dump($ex->getMessage());
}
What could be causing this issue, and if someone has experienced this before, could you please guide me on how to resolve it?
Thank you very much.Jadugar_Jaggu
05/06/2023, 5:03 PMJadugar_Jaggu
05/06/2023, 5:03 PMJadugar_Jaggu
05/06/2023, 5:04 PMUnsmart | Tech debt
05/06/2023, 5:22 PMUnsmart | Tech debt
05/06/2023, 5:23 PMraghavTinker
05/06/2023, 7:23 PMclass R2Storage(S3Boto3Storage):
------
endpoint_url = settings.R2_ENDPOINT_URL
------
Jadugar_Jaggu
05/06/2023, 7:30 PMUnsmart | Tech debt
05/06/2023, 7:30 PMJadugar_Jaggu
05/06/2023, 7:33 PMUnsmart | Tech debt
05/06/2023, 7:34 PMJadugar_Jaggu
05/06/2023, 7:34 PMtricked
05/06/2023, 9:29 PMkian
05/06/2023, 9:40 PMkian
05/06/2023, 9:40 PMtricked
05/06/2023, 9:42 PMtricked
05/06/2023, 9:46 PM