Upload the no-signal images
1.API Description
This API is used to upload a no-signal image, which will be displayed when there is no input signal.
- The file format must be *.png
- The file must be uploaded using POST multipart/form-data
- Existing image will be automatically overwritten.
- If no image is uploaded, the system default image will be used; the default image cannot be deleted.
Request mode: POST [ip]/api/resource/image/upload
Administrator Rights | Logged-in |
---|---|
No | Yes |
2. Input Parameters
Name | Type | Description |
---|---|---|
id | String | Image ID |
type | String | Reserved. |
3. Output Parameters
Name | Type | Description |
---|---|---|
status | Int | Status code |
code | String | Status description. |
4. Example
Uploading an image for no-signal display.
Input Example
------WebKitFormBoundaryIQYfOLWb1KdjY6f3
Content-Disposition: form-data; name="file"; filename="no_signal.png"
Content-Type: application/octet-stream
------WebKitFormBoundaryIQYfOLWb1KdjY6f3--
Output Example
{
"status": 0,
"code" : "Success"
}
5. Error Code
The following only lists the error codes related to the API business logic. For other error codes, see Common Error Codes.
Status | Definition | Description |
---|---|---|
18 | MW_STATUS_TOO_LARGE | The file is too large. |
23 | MW_STATUS_FILE_TYPE_ERROR | The file format is not correct. |