Endpoints for uploading large files in multiple chunks. Also has the ability to resume if the upload is interrupted.
- Send a POST request to
/fileswith the first chunk of the file and receive an upload id in return.
- Repeatedly PATCH subsequent chunks using the upload id to identify the upload in progress and an offset representing the number of bytes transferred so far.
- After each chunk has been uploaded, the server returns a new offset representing the total amount transferred.
- After the last chunk commit the upload by passing its id to another endpoint such as
POST /audio, etc.