Upload Static Image Resource

1. API Description

This API is used to upload static image resources. Image resources can be used for scenarios such as no-signal screen.

  • File format must be jpeg
  • Must use POST multipart/form-data to upload files

Request mode: POST [ip]/api/resource/image/upload

Administrator Rights Login Authentication
No Yes

2. Input Parameters

  • JPEG format image
  • Add parameters in form-data
Parameter Name Type Description
type String Resource type, img_none represents the image when no source is selected, img_no_signal represents the image when there is no signal currently

3. Output Parameters

Parameter Type Description
status Int Status code

4. Example

Upload no-signal screen image.

Input Example
------WebKitFormBoundaryfjdMAAM0aoizylfB
Content-Disposition: form-data; name="type"

img_no_signal
------WebKitFormBoundaryfjdMAAM0aoizylfB
Content-Disposition: form-data; name="file"; filename="xxx.jpg"
Content-Type: image/jpeg


------WebKitFormBoundaryfjdMAAM0aoizylfB--
Output Example
{
    "status": 0
}

results matching ""

    No results matching ""

    results matching ""

      No results matching ""