ErrMsg . "\n"; echo "code: " . $err->Code . "\n"; exit; } $uploadId = $data['UploadId']; $blkSize = $data['BlkSize']; echo "UploadId: " . $uploadId . "\n"; echo "BlkSize: " . $blkSize . "\n"; //数据上传 list($etagList, $err) = UCloud_MUpload($bucket, $key, $file, $uploadId, $blkSize); if ($err) { echo "error: " . $err->ErrMsg . "\n"; echo "code: " . $err->Code . "\n"; exit; } //完成上传 list($data, $err) = UCloud_MFinish($bucket, $key, $uploadId, $etagList); if ($err) { echo "error: " . $err->ErrMsg . "\n"; echo "code: " . $err->Code . "\n"; exit; } echo "Etag: " . $data['ETag'] . "\n"; echo "FileSize: " . $data['FileSize'] . "\n";