POST
/
files
/
upload
Upload post image
curl --request POST \
  --url https://localhost:5000/files/upload \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: multipart/form-data' \
  --form image='@example-file'
{
  "success": true,
  "message": "upload image",
  "data": {
    "url": "<string>",
    "key": "<string>",
    "originalName": "<string>"
  }
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

multipart/form-data
image
file
required

Image file to upload (JPEG, PNG, etc.)

Response

Image uploaded successfully

success
boolean
required
Example:

true

message
string
required
Example:

"upload image"

data
object
required