Open-source, secure environment with real-world tools for enterprise-grade agents.
Python agentaiai-agentai-agentscode-interpretercopilotdevelopmentdevtoolsgptgpt-4javascriptllmnextjsopenaipythonreactsoftwaretypescript
Await for get uploadUrl and downloadUrl (#793)
Jiri Svecenyaa13185e7b96
diff --git a/apps/web/src/app/(docs)/docs/filesystem/download/page.mdx b/apps/web/src/app/(docs)/docs/filesystem/download/page.mdxindex ef6eaeb5b..5fdf327f7 100644--- a/apps/web/src/app/(docs)/docs/filesystem/download/page.mdx+++ b/apps/web/src/app/(docs)/docs/filesystem/download/page.mdx@@ -42,7 +42,7 @@ import { Sandbox } from '@e2b/code-interpreter'const sandbox = await Sandbox.create(template, { secure: true })// Create a pre-signed URL for file download with a 10 second expiration-const publicUrl = sandbox.downloadUrl(+const publicUrl = await sandbox.downloadUrl('demo.txt', {useSignature: true,useSignatureExpiration: 10_000, // optionaldiff --git a/apps/web/src/app/(docs)/docs/filesystem/upload/page.mdx b/apps/web/src/app/(docs)/docs/filesystem/upload/page.mdxindex 5271861ed..83bf05366 100644--- a/apps/web/src/app/(docs)/docs/filesystem/upload/page.mdx+++ b/apps/web/src/app/(docs)/docs/filesystem/upload/page.mdx@@ -42,7 +42,7 @@ import { Sandbox } from '@e2b/code-interpreter'const sandbox = await Sandbox.create(template, { secure: true })// Create a pre-signed URL for file upload with a 10 second expiration-const publicUploadUrl = sandbox.uploadUrl(+const publicUploadUrl = await sandbox.uploadUrl('demo.txt', {useSignature: true,useSignatureExpiration: 10_000, // optional