Skip to main content
POST
File Stream Upload

Authorizations

Authorization
string
header
required

##All APIs require Bearer Token authentication##

Get API Key:

Visit API Key Management Page to get your API Key

Add to request header:

Body

multipart/form-data
file
file
required

File binary data

Note:

  • Upload via form-data format
  • System will automatically identify file type
  • Maximum 1 image per request
  • Currently supports uploading files in: image/jpeg, image/png, image/gif, image/webp formats only
upload_path
string

Custom upload path

Note:

  • Supports underscore naming: upload_path
  • Supports camelCase naming: uploadPath
  • If not specified, system will automatically categorize based on file type
Example:

"photos"

file_name
string

Custom file name

Note:

  • Supports underscore naming: file_name
  • Supports camelCase naming: fileName
  • If not specified, system will automatically generate a unique file name
Example:

"photo.png"

Response

200 - application/json

File uploaded successfully

success
boolean

Whether the request was successful

Example:

true

code
integer

Response status code

Example:

200

msg
string

Response message

Example:

"File uploaded successfully"

data
object