Skip to content

fix: preserve directory paths in multipart uploads#980

Open
daletyler1737 wants to merge 1 commit intoanthropics:mainfrom
daletyler1737:fix/preserve-directory-paths
Open

fix: preserve directory paths in multipart uploads#980
daletyler1737 wants to merge 1 commit intoanthropics:mainfrom
daletyler1737:fix/preserve-directory-paths

Conversation

@daletyler1737
Copy link
Copy Markdown

Problem

The SDK's multipart form handling strips directory paths from filenames when uploading files. The getName function in internal/uploads.ts uses stripPath=true by default in createForm and multipartFormRequestOptions.

This breaks client.beta.skills.versions.create() which requires SKILL.md to be inside a top-level directory (e.g. my-skill/SKILL.md).

Solution

Change the default value of stripFilenames from true to false in both createForm and multipartFormRequestOptions.

Related Issue

Fixes #968

@daletyler1737 daletyler1737 requested a review from a team as a code owner April 8, 2026 09:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

SDK strips directory paths from filenames in multipart uploads, breaking skills.versions.create()

1 participant