Skip to main content

Preflight check before upload (Optional API)

MethodAPIDescription
OPTIONS/context/files/contentPreflight check before upload

Request Body:

{
"name": "集成说明.docx", // File name
"size": 65537, // File size
"pathType": "企业空间/个人空间/我的共享/收到的共享" // Obtained from box
}

Success Response (200):

{  
"created_by": {
"id": "301",
"email": "docstest02@lenovo.com",
"name": "docstest02"
},
"owner": {
"id": "301",
"email": "docstest02@lenovo.com",
"name": "docstest02"
},
"id": "483",
"modified_by": {
"id": "301",
"email": "docstest02@lenovo.com",
"name": "docstest02"
},
"description": "",
"name": "/study/Nodejs/Demo/集成说明.docx",
"permissions": {
"write": "true",
"read": "true",
"download": false,
"print": true
},
"created_at": "2020-03-25T02:57:38.000Z",
"modified_at": "2020-03-25T02:57:38.000Z",
"size": 0,
"protection_status": "normal",
"version": "1"
}

Error Response:
Returns 409 status code when file name conflicts