solved issue on attachments

This commit is contained in:
lucio.lelii 2021-07-02 13:18:18 +02:00
parent 5f6660bcc4
commit 11e5469dbf
1 changed files with 3 additions and 4 deletions

View File

@ -137,9 +137,8 @@ public class DefaultMessageManager implements MessageManagerClient {
formData.add("subject", subject);
formData.add("body", body);
if (attachments!=null)
attachments.forEach(a -> formData.add("attachemnts[]", a));
attachments.forEach(a -> formData.add("attachments[]", a));
System.out.println(formData.toString());
GXInboundResponse response = myManager.post(Entity.entity(formData, MediaType.APPLICATION_FORM_URLENCODED));
if (response.isErrorResponse()) {
if (response.hasException())