Common | UploadAttachment
Use this interface to upload attachments. The returned attachment URL is intended for use in other business interfaces.
POST
/flight/commonParameter
| Field | Mandatory | Type | Scope | Description |
|---|---|---|---|---|
| action | required |
String | UploadAttachments | |
| key | required |
String | API security key applied from AeroHub. | |
| signature | required |
String | Refer to the Guidelines for generation. | |
| timestamp | required |
Int | The ‘timestamp’ field should be a 10-digit Unix timestamp in seconds, used for encryption and data verification. | |
| version | optional |
String | API version information, e.g. “3.2.0”. | |
| request | required |
Object | ||
| attachments | required |
Object[] | Attachment. The supported file types are as follows,JPG, JPEG, PNG, PDF. Maximum single upload file size: 10M. | |
| name | required |
String | File name with extension. | |
| content | required |
String | File content text, converted by the original file with base64 encoding. |
Request_Example:
{ "action": "UploadAttachments", "version": "v2.0.3", "timestamp": 1685116516, "key": "mkk5VmNZYKiGEO26", "signature": "uaQb6MG71EAPTdmUoKpP+mlSh//2GRB8zOxCAzWok2w=", "request": { "attachments": [ { "name": "QA.JPG", "content": "f3b7288cd66c26cb087f70501641a1ea" } ] } }
Response
| Field | Type | Description |
|---|---|---|
| status | Int | 0: Succeeded Others: Failed Refer to “Status Code” below for details. |
| msg | String | Return message, maximum 64 characters. |
| attachments | Object[] | |
| name | String | File name with extension. |
| url | String | File url. |
Success-Response:
{ "status": 0, "msg": "Success", "attachments": [ { "name": "QA.JPG", "url": "http://lffarebox.oss-cn-hongkong.aliyuncs.com/upload%2F2025121811%2F2025121811_0.JPG" } ] }
Status Code
| Name | Description |
|---|---|
| 1000 | General system error |
| 1001 | attachments required |
| 1004 | {name} attachment type [{extension of name}] not support |
Error-Response
{ "status": 1000, "msg": "General system error" }
Author:admin Create time:2025-12-19 10:36
Last editor:admin Update time:2025-12-19 10:37
Last editor:admin Update time:2025-12-19 10:37