Menghasilkan parameter dan tanda tangan yang diperlukan untuk URL unggah file.
Deskripsi operasi
You can directly upload a file to Object Storage Service (OSS) by using a form based on the returned value of this operation.
For more information about how to upload a file to OSS by using a form, see OSS documentation.
The system periodically deletes files that are uploaded to OSS.
Coba sekarang
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
hbr:CreateTempFileUploadUrl |
create |
*All Resource
|
None | None |
Parameter permintaan
|
Parameter |
Type |
Required |
Description |
Example |
| FileName |
string |
Yes |
Nama file yang akan diunggah. |
file-list.txt |
Elemen respons
|
Element |
Type |
Description |
Example |
|
object |
|||
| Endpoint |
string |
The endpoint that is used to upload the file to OSS. |
oss-cn-shenzhen.aliyuncs.com |
| RequestId |
string |
The ID of the request. |
F4EEB401-DD21-588D-AE3B-1E835C7655E1 |
| ExpireTime |
integer |
The expiration time of the signature that is used to upload the file to OSS. This value is a UNIX timestamp. Unit: seconds. |
1654326678 |
| Success |
boolean |
Indicates whether the call is successful. Valid values:
|
true |
| Code |
string |
The HTTP status code. The status code 200 indicates that the call is successful. |
200 |
| TempFileKey |
string |
The key that is used to upload the file to OSS. |
temp/1440155109798732/upload/2022-07-29/49bed34c-b430-4e7e-89b1-4be2b734f95c/iaclone.diff |
| Message |
string |
The message that is returned. If the call is successful, "successful" is returned. If the call fails, an error message is returned. |
successful |
| BucketName |
string |
The name of the OSS bucket to which the file is uploaded. |
hbr-temp-bucket |
| OssAccessKeyId |
string |
The AccessKey ID that is used to upload the file to OSS. |
LTAI****Up |
| Policy |
string |
The policy that is used to upload the file to OSS. |
eyJleH****V19 |
| Signature |
string |
The signature that is used to upload the file to OSS. |
RmhI****0A= |
Contoh
Respons sukses
JSONformat
{
"Endpoint": "oss-cn-shenzhen.aliyuncs.com",
"RequestId": "F4EEB401-DD21-588D-AE3B-1E835C7655E1",
"ExpireTime": 1654326678,
"Success": true,
"Code": "200",
"TempFileKey": "temp/1440155109798732/upload/2022-07-29/49bed34c-b430-4e7e-89b1-4be2b734f95c/iaclone.diff",
"Message": "successful",
"BucketName": "hbr-temp-bucket",
"OssAccessKeyId": "LTAI****Up",
"Policy": "eyJleH****V19",
"Signature": "RmhI****0A="
}
Kode kesalahan
Lihat Error Codes untuk daftar lengkap.
Catatan rilis
Lihat Release Notes untuk daftar lengkap.