Johan Mynhardt
Johan Mynhardt
Hey @ThefplAnalyst :) Did you try to run this with debugging enabled? It appears that there was no response from the endpoint. It would be interesting to see what came...
:-/ Hmm, I was hoping there would be actual content to see. Any possibility that you can recreate the request as a cURL request? Or if that doesn't return anything...
Hi @paratechnical, if you look at [com.afrozaar.wordpress.wpapi.v2.Client](https://github.com/Afrozaar/wp-api-v2-client-java/blob/develop/src/main/java/com/afrozaar/wordpress/wpapi/v2/Client.java) and the `meta` methods, you'll be able to do that. So you'll for example use `client.createMeta(postId, "enclosure", "enclosure value");`.
@paratechnical you can have a look in [/src/test/java/com/afrozaar/wordpress/wpapi/v2/ClientLiveIT.java#L358](https://github.com/Afrozaar/wp-api-v2-client-java/blob/develop/src/test/java/com/afrozaar/wordpress/wpapi/v2/ClientLiveIT.java#L358) You do need a post. This is something required by the wordpress REST API.
@paratechnical that `ClientLiveIT` class is where you'll get all the cases that I had to make it work with.
It could be a permission issue or the rest endpoint could have an issue. If you initialised the client with debugging enabled, you should be able to see more information...
Hi @pborgesalves, Thank you for your feedback. I will have to take a look. There is a test in which a post is created with a particular _category_, although you...
Hi @pborgesalves I have stabilised 4.8.1 that will allow you to use the builder method `.withTags(Term... tags)` or `.withTags(List tagIds)` with existing Tag terms. It will take a while before...
``` com.afrozaar.wordpress wp-api-v2-client-java 4.8.1 ```
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.