"latest", "region" => getenv("BIZ_ACCESS_REGION"), "endpoint" => "https://" . getenv("BIZ_ENDPOINT"), "credentials" => [ "key" => getenv("BIZ_ACCESS_KEY_ID"), "secret" => getenv("BIZ_ACCESS_KEY_SECRET"), ], ]); try { $result = $client->putObject( [ "Bucket" => getenv("BIZ_BUCKET_NAME"), "Key" => $folder . "/" . $nama_file, // "Body" => fopen($temp_file, "r"), // 'private|public-read|public-read-write|authenticated-read|aws-exec-read|bucket-owner-read|bucket-owner-full-control' "ACL" => "private", ]); } catch (S3Exception $e) { echo "Upload failed"; die(); } ?>