-
Notifications
You must be signed in to change notification settings - Fork 3
File upload API
The Upload API allows TeamHaven Mobile clients to upload Pictures to the server. When a Picture is uploaded the server responds with a Guid which can be used as the Answer to a Picture Question.
POST /api/uploads
Upload a file to the server.
The request must be multipart/form-data and the file being uploaded must be the first (and only) part.
Note: Requests can not exceed 64Mb. Maximum acceptable file sizes will be smaller than this as file sizes tend to increase when encoded for HTML upload.
The response body will be a string containing a Guid.
"1baba0de-e668-424a-abb4-2fcd10442bde"Note: Uploaded files are purged from the server after 14 days.
HEAD /api/uploads/:guid
Check to see if a file still exists on the server.
The HTTP Status Code is used to indicate the presence of the file:
204 - No Content - Indicates that the file exists on the server.
404 - Not Found - Indicates that the file does not exist on the server.