UploadFile
POST /v1/form/uploadfile
Below is an example illustrating the consumable format of UploadFile.
Headers
Name
Value
Content-Type
application/json
CLIENT_ID
<client id>
Body
The body format is form-data, make sure that file key is part for the form upload is set to the file key
Key
Value
file
<upload file>
Example
curl --location 'https://../api/v1/Question/UploadFile' \
--header 'CLIENT_ID: <Client Id>' \
--form 'file=@"/C:path/download.jpg"'{
"fileName": "download",
"extension": ".jpg",
"mimeType": "image/jpeg",
"id": "8acb4a53-d14a-499c-8683-dbff2aaad816",
"filePondId": "8acb4a53"
}{
"error": {
"code": "invalid_request_error",
"message": "No file was uploaded."
}
}Last updated