LangChain Reference home pageLangChain ReferenceLangChain Reference
  • GitHub
  • Main Docs
Deep Agents
LangChain
LangGraph
Integrations
LangSmith
  • Overview
  • Agent
  • Middleware
  • Backends
  • Sandboxes
  • Skills
  • Subagents
  • Configuration
  • Types
Modal
Daytona
Deno
Node VFS
Sandbox Standard Tests
  • Vitest
⌘I

LangChain Assistant

Ask a question to get started

Enter to send•Shift+Enter new line

Menu

OverviewAgentMiddlewareBackendsSandboxesSkillsSubagentsConfigurationTypes
Modal
Daytona
Deno
Node VFS
Sandbox Standard Tests
Vitest
Language
Theme
JavaScriptdeepagentsindexBackendProtocolV1uploadFiles
Method●Since v1.8

uploadFiles

Upload multiple files. Optional - backends that don't support file upload can omit this.

Copy
uploadFiles(files: [string, Uint8Array<ArrayBufferLike>][]): MaybePromise<FileUploadResponse[]>

Parameters

NameTypeDescription
files*[string, Uint8Array<ArrayBufferLike>][]

List of [path, content] tuples to upload

View source on GitHub