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

Creating media using ByteArrayResource causes HTTP/400 response. #43

Open
johanmynhardt opened this issue Sep 7, 2017 · 1 comment
Open
Assignees
Labels

Comments

@johanmynhardt
Copy link
Contributor

The method to create a media item is: Wordpress.createMedia(mediaObject:Media, resource:Resource)

This allows for using ByteArrayResource, but an HTTP/400 error response is returned.

@johanmynhardt
Copy link
Contributor Author

From investigation thus far, it proves that the filename; part in Content-Disposition is not populated when using a ByteArrayResource. ByteArrayResource does not override getFileName which returns null by default.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant