Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix | V3 - Remove array filter on multipart builder #332

Merged
merged 1 commit into from
Nov 22, 2023

Conversation

Sammyjo20
Copy link
Member

Fixes #331

Sometimes APIs will accept an empty string or null for the contents of Multipart Values. Previously if you had tried to provide an empty string, you would get an error from Guzzle. This was because of an array_filter() that I had added previously.

I have now also written a real-world test that makes an API call to our test service to ensure real uploads work.

Copy link
Member Author

@Sammyjo20 Sammyjo20 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Self review

@Sammyjo20 Sammyjo20 merged commit a5769b6 into v3 Nov 22, 2023
14 checks passed
@Sammyjo20 Sammyjo20 deleted the fix/remove-array-filter-on-multipart-builder branch November 30, 2023 17:22
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.

InvalidArgumentException: A 'contents' key is required
1 participant