POST new/aliyun/upload/png
Base64 PNG 图片上传
Request Information
URI Parameters
None.
Body Parameters
UploadBase64Request| Name | Description | Type | Additional information |
|---|---|---|---|
| Url |
Base64 数据(可含 data:image 前缀)。 |
string |
None. |
| Name |
文件名标识。 |
string |
None. |
Request Formats
application/json, text/json
Sample:
{
"Url": "sample string 1",
"Name": "sample string 2"
}
application/xml, text/xml
Sample:
<UploadBase64Request xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/ma.Api.Controllers.Dtos"> <Name>sample string 2</Name> <Url>sample string 1</Url> </UploadBase64Request>
application/x-www-form-urlencoded
Sample:
Response Information
Resource Description
ApiDataResponse| Name | Description | Type | Additional information |
|---|---|---|---|
| Ok |
接口是否成功。 |
boolean |
None. |
| Data |
返回数据。 |
Object |
None. |
| Msg |
返回消息。 |
string |
None. |
Response Formats
application/json, text/json
Sample:
{
"Ok": true,
"Data": {},
"Msg": "sample string 3"
}
application/xml, text/xml
Sample:
<ApiDataResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/ma.Api.Controllers.Dtos"> <Data /> <Msg>sample string 3</Msg> <Ok>true</Ok> </ApiDataResponse>