Preflight checkTo prevent wasting time and bandwidth uploading a file that is going to be
rejected it is recommended to perform a before
uploading the file.
Request Format
The request body of this API uses a content type ofmultipart/form-data. This
is used to transmit two parts, namely the file attributes and the file’s actual
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 is an example a test.txt being uploaded to the root folder of
the user.
Options
To learn more about all the parameters available when uploading files, head over to the . These parameters include acontent-md5 that can be set to ensure a file is not corrupted in
transit, and the ability to explicitly specify the file creation time at a
different time than the upload time.
For file versions an additional can be passed
along to prevent overwriting a file that has already been updated since the
application last inspected the content.
