Files

Catalog


POST Authorize Upload icon

Request path:

https://staging.server.kahla.app/Files/UploadIcon

Request content type:

multipart/form-data

Form content example:

 

Request form:

Name Required Type
File Required File

Possible Response:

{
  "fileKey": 0,
  "downloadPath": "an example string.",
  "code": 0,
  "message": "an example string."
}

Possible Response:

{
  "code": -1,
  "message": "Some error."
}

Possible Response:

{
  "items": [
    "Some item is invalid!"
  ],
  "code": -10,
  "message": "Your input contains several errors!"
}

POST Authorize Upload media

Request path:

https://staging.server.kahla.app/Files/UploadMedia

Request content type:

multipart/form-data

Form content example:

 

Request form:

Name Required Type
File Required File

Possible Response:

{
  "fileKey": 0,
  "downloadPath": "an example string.",
  "code": 0,
  "message": "an example string."
}

Possible Response:

{
  "code": -1,
  "message": "Some error."
}

Possible Response:

{
  "items": [
    "Some item is invalid!"
  ],
  "code": -10,
  "message": "Your input contains several errors!"
}

POST Authorize Upload file

Request path:

https://staging.server.kahla.app/Files/UploadFile

Request content type:

multipart/form-data

Form content example:

ConversationId=0 

Request form:

Name Required Type
ConversationId Required Number
File Required File

Possible Response:

{
  "savedFileName": "an example string.",
  "fileKey": 0,
  "fileSize": 0,
  "code": 0,
  "message": "an example string."
}

Possible Response:

{
  "code": -1,
  "message": "Some error."
}

Possible Response:

{
  "items": [
    "Some item is invalid!"
  ],
  "code": -10,
  "message": "Your input contains several errors!"
}

POST Authorize File download address

Request path:

https://staging.server.kahla.app/Files/FileDownloadAddress

Request content type:

application/x-www-form-urlencoded

Form content example:

FileKey=0 

Request form:

Name Required Type
FileKey Required Number

Possible Response:

{
  "fileName": "an example string.",
  "downloadPath": "an example string.",
  "code": 0,
  "message": "an example string."
}

Possible Response:

{
  "code": -1,
  "message": "Some error."
}

Possible Response:

{
  "items": [
    "Some item is invalid!"
  ],
  "code": -10,
  "message": "Your input contains several errors!"
}