Get upload URL

post/get-upload-url

Request body

originalFileNamestring

The original file name

fileTypestring

The file type

fileSizenumber

The file size in bytes

Example request

{
  "originalFileName": "file.jpeg",
  "fileType": "image/jpeg",
  "fileSize": 123456
}

Response

Successful operation

statusstring

Example response

{
  "status": "success",
  "data": {
    "uploadURL": "http://example.com/upload",
    "fileName": "example.jpg",
    "fileType": "image/jpeg",
    "fileSize": 12345,
    "originalFileName": "original.jpg",
    "path": "/path/to/file",
    "createdAt": 1633024800000,
    "expiresAt": 1654560800000
  }
}

Changes