@devries-cameron20 / composio Mirror · read-only / commits / e74638358
Fork 0

Composio powers 1000+ toolkits, tool search, context management, authentication, and a sandboxed workbench to help you build AI agents that turn intent into action.

Mirrored from https://github.com/Camo67/composio.git

Synced Nov 22, 12:00 UTC

fix(ts/core): remove base64 to Uint8Array buffer, fix corrupted files (#2531)

Co-authored-by: jkomyno <12381818+jkomyno@users.noreply.github.com> Co-authored-by: haxzie <musthu.gm@gmail.com>

Alberto Schiabel committed Jan 30, 2026 at 12:03 UTC e7463835805191ca6ae0625c9515e2f08b1afe65
2 files changed +6 -2
.changeset/nice-months-cut.md new
+5
@@ -0,0 +1,5 @@
1 +---
2 +'@composio/core': patch
3 +---
4 +
5 +Fix issues with file upload corruption
ts/packages/core/src/utils/fileUtils.node.ts
+1 -2
@@ -178,11 +178,10 @@ const uploadFileToS3 = async (
178 // Create a new ArrayBuffer to ensure compatibility with fetch API
179 const uploadBuffer = new Uint8Array(contentBytes.byteLength);
180 uploadBuffer.set(contentBytes);
181 - const bufferBase64 = uint8ArrayToBase64(uploadBuffer);
181
182 const uploadResponse = await fetch(signedURL, {
183 method: 'PUT',
185 - body: bufferBase64,
184 + body: uploadBuffer,
185 headers: {
186 'Content-Type': mimeType,
187 'Content-Length': contentBytes.length.toString(),