Skip to main content
You can use the files.write() method to upload data to the sandbox. Before running the example code in this document, please ensure you have properly configured environment variables. For details, please refer to Configure Environment Variables.

Upload single file


Upload with pre-signed URL

Pre-signed upload URLs allow users to upload files securely from environments that do not hold Novita SDK credentials, such as web browsers. Create the sandbox with the secure: true option, then use the SDK on your trusted backend to generate the upload URL. Return it only to users authorized by your application, and set a short expiration time. The URL acts as a temporary bearer credential until it expires.

Upload directory / multiple files

Last modified on August 5, 2026