Uploading a File

Uploading a file is the most common use case for our API. Files are uploaded in binary form as the post body.

post
Upload a File

https://fileio.couchdrop.io/file/upload
This endpoint allows you to upload files
Request
Response
Request
Headers
token
required
string
API Access Token
Query Parameters
path
required
string
Path to upload destination
size
required
number
File size
modtime
optional
number
Last modified time. (Not all storage providers support the specification of modtimes on upload)
Body Parameters
data
required
object
File object to upload
Response
200: OK
Cake successfully retrieved.
{}
403: Forbidden
Permission denied
{"error": "you cannot write to that folder"}

‚Äč