Upload Finish

Check the temporary file and move it to its final location.

Request

POST https://api.cloudplan.biz/api/file/upload_finish

{
    "file_id": "..."      //(string) the id of the file to be finalized
}

Reply

{
    "result": true/false
    "reason": any error code (on failure)
    "new_file_id" : "..."        //(string) the new, permanent file_id
    "temp_file_id" : "..."       //(string) the file_id that was used for the upload api calls
}

Error Codes

file_id_empty
file_not_found
user_has_no_access
file_not_complete
uploaded_data_is_larger_than_file_size
appserv_operation_failed
node_operation_failed

error codes from :doc:`api/user/login`