Upload Data¶
Append some data to the file being uploaded.
Request¶
POST https://api.cloudplan.biz/upload
<binary data>
Additional Request Headers¶
"file-id":"..." //(string) the id of the file to be appended
Note: use the file_id from an upload_start call
Note: the the minus "-" in the header field vs "_" in the post requests
when looking at the property name file id
Reply¶
{
"result": true/false
"reason": any error code (on failure)
"max_allowed_chunk_size": 524288 //(integer) for uploads
this is the maximum chunk size in bytes. Any larger files
will have to be uploaded in multiple chunks
}
Error Codes¶
file_not_found
file_is_complete
user_has_no_access
no_data
data_size_error
write_failed
node_offline
timeout
connection_error