Upload a new file
To upload a new file to a folder, call the convenience method for new files with the file stream, file name, file size in bytes, and parent folder ID.Upload a new file version
To upload a new version of an existing file, call the convenience method for file versions with the file ID, file stream, and file size in bytes. You can also pass a new file name. Before it uploads each part, the method from the previous version of the file and skips it if so. It then commits the session with both the uploaded parts and the parts Box reused.202 Accepted.
The convenience method for file versions is available in the following SDK
versions:
The combined versions include both the manually maintained and the generated
SDK packages. In these versions, call the method from the generated package.
For details, see .
For a complete Python example with preflight checks and name conflict handling,
see .
