40.mediafile-upload-result-report

Report Media Upload Result

POST /media/api/v1/workspaces/{workspace_id}/upload-callback

Parameters

Name
In
Type
Required
Description

workspace_id

path

string

true

workspace id

x-auth-token

header

string

true

access token

Responses

Status
Meaning
Description
Schema

Example responses

{
    "code":0,
    "message":"success",
   	"data":{
      "object_key":"5asjwu24-2a18-4b4b-86f9-3a678da0bf4d/example.jpg"
    }
}

Schemas

media.UploadCallbackInput

Properties

Name
Type
Required
Restrictions
Description

result

int

true

none

Whether the file is successfully uploaded to the storage bucket. Non-zero means failure.

ext

false

none

extended attributes for file associations

fingerprint

string

false

none

file fingerprint

metadata

false

none

media metadata

name

string

true

none

filename

object_key

string

true

none

the key of the file in the object storage bucket

path

string

false

none

the business path of the file

sub_file_type

integer

false

none

valid when the file is a picture * 0 - normal picture * 1 - panorama

media.MediaFile

Properties

Name
Type
Required
Restrictions
Description

file_group_id

string

false

none

file group id

drone_model_key

string

false

none

device product enum

is_original

boolean

false

none

whether is the original image

payload_model_key

string

false

none

payload product enum

tinny_fingerprint

string

false

none

tiny fingerprint

sn

string

false

none

serial number

media.MetaData

Properties

Name
Type
Required
Restrictions
Description

absolute_altitude

number

false

none

absolute height

created_time

string

false

none

media created time

gimbal_yaw_degree

number

false

none

gimbal yaw degree

relative_altitude

integer

false

none

relative height

shoot_position

object

false

none

shoot position

» lat

integer

false

none

latitude of shooting location

» lng

integer

false

none

longitude of shooting location

media.UploadCallbackOutput

Properties

Name
Type
Required
Restrictions
Description

code

integer

false

none

error code

message

string

false

none

description

media.UploadCallbackOutputData

Properties

Name
Type
Required
Restrictions
Description

object_key

string

false

none

the key of the file in the object storage bucket

Last updated