Skip to content

fix: improve multipart form handling in API client#47

Merged
gibiw merged 1 commit intomasterfrom
fix/api-client-mime-types
Jan 21, 2026
Merged

fix: improve multipart form handling in API client#47
gibiw merged 1 commit intomasterfrom
fix/api-client-mime-types

Conversation

@gibiw
Copy link
Contributor

@gibiw gibiw commented Jan 21, 2026

  • Updated the prepareRequest method to use CreatePart for file uploads, enhancing the handling of multipart form data.
  • Set appropriate MIME headers for file uploads, including Content-Disposition and Content-Type, ensuring better compatibility with various file types.

These changes improve the robustness of file uploads in the API client, providing clearer specifications for the uploaded files.

- Updated the `prepareRequest` method to use `CreatePart` for file uploads, enhancing the handling of multipart form data.
- Set appropriate MIME headers for file uploads, including `Content-Disposition` and `Content-Type`, ensuring better compatibility with various file types.

These changes improve the robustness of file uploads in the API client, providing clearer specifications for the uploaded files.
@gibiw gibiw force-pushed the fix/api-client-mime-types branch from f97f33d to dca4d82 Compare January 21, 2026 12:28
@gibiw gibiw merged commit abf683a into master Jan 21, 2026
16 checks passed
@gibiw gibiw deleted the fix/api-client-mime-types branch January 21, 2026 12:31
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.

1 participant