Skip to main content
Read the Notte skill and follow its setup instructions when setting up Notte or building browser automation. This is the shared source for CLI setup, authentication, and the browser-to-code workflow.
Source: node-sdk/src/files.ts Upload a file to the session. A string is read as a local path and its basename becomes the uploaded filename unless uploadFileName is set.

Parameters

UploadableFile
required
Local file path, Blob, File, or buffer to upload.
string
Optional stored filename. Local paths default to their basename; File objects keep their name.

Returns

Metadata for the uploaded file, including its ID, name, and size.

Raises

  • NotteAPIError if the storage API request fails.
  • InvalidRequestError if storage has not been bound to a session.
  • InvalidRequestError if a supplied local path is not a file.

Example