Skip to main content
The Box SDKs include convenience methods that run a whole for you. They create the upload session, upload the file in parts, and commit the session.

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.
The method returns the new file.

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.
The method returns the updated file, or an empty result when the returns 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 .
If your application creates an upload session for an existing file and uploads each part itself, it uploads every part. Switch to the convenience method for file versions to skip the parts Box already stores.
For a complete Python example with preflight checks and name conflict handling, see .
Last modified on November 12, 2026