Skip to content

armgit / E2B

Public Imported from GitHub
0

Open-source, secure environment with real-world tools for enterprise-grade agents.

Fix method description

Tomas Valenta33f868eb14df
diff --git a/packages/js-sdk/src/session/index.ts b/packages/js-sdk/src/session/index.ts
index d7c857679..86084874c 100644
--- a/packages/js-sdk/src/session/index.ts
+++ b/packages/js-sdk/src/session/index.ts
@@ -406,8 +406,7 @@ export class Session extends SessionConnection {
* The file will be uploaded to the user's home directory with the same name.
* If a file with the same name already exists, it will be overwritten.
*
- * **Use this method only in the non-browser environment.
- * In the browser environment, use the `uploadURL()` method and upload the file driectly via POST multipart/form-data**
+ * **You can use the {@link Session.fileURL} property and upload file directly via POST multipart/form-data**
*
*/
async uploadFile(file: Buffer | Blob, filename: string) {