Files
Preflight check before upload
Performs a check to verify that a file will be accepted by Box before you upload the entire file.
options/files/content
Request body
Example request
{
"name": "File.mp4",
"size": 1024,
"parent": {
"id": "123"
}
}Response
If the check passed, the response will include a session URL that can be used to upload the file to.
Example response
{
"upload_url": "https://upload-las.app.box.com/api/2.0/files/content?upload_session_id=1234",
"upload_token": "Pc3FIOG9vSGV4VHo4QzAyg5T1JvNnJoZ3ExaVNyQWw6WjRsanRKZG5lQk9qUE1BVQP"
}