Run a before you upload. The check confirms that Box accepts the file before you send it.
Request format
The request body of this API uses a content type ofmultipart/form-data. The
body sends two parts: the file attributes and the file content.
The first part is called attributes and contains a JSON object with
information about the file, including the name of the file and the id of the
parent folder.
The following example uploads test.txt to the user’s root folder.
Options
For the parameters available when uploading files, see the . These parameters includecontent-md5, which you can set so Box can detect corruption in
transit, and a way to set the file creation time separately from the upload time.
For file versions, pass an additional
to prevent overwriting a file that was updated since you
last inspected the content.
