热心网友
回答时间:2023-07-01 06:06
方法
$client = OSSClient::factory(array(
'AccessKeyId' => 'xxxxxxxx',
'AccessKeySecret' => 'xxxxxxxxx',
));
$client->putObject(array(
'Bucket' => '自取的名字',
'Key' => $new_name,
'Content' => fopen($big_image_info['tmp_name'], 'r'),
'ContentLength' => filesize($big_image_info['tmp_name']),
));
收起