Solved

Invalid data for multipart attachments / arrays

  • 28 December 2022
  • 1 reply
  • 47 views

Badge +2

We are trying to attach 25 attachment to https://api2.frontapp.com/channels/cha_123/messages and get a 400 response. When we attach less (21 of the 25 attachments) everything goes through fine.

icon

Best answer by Support Engineering 28 December 2022, 19:04

View original

1 reply

Userlevel 1
Badge +5

The limitation you experienced is enforced by the library we use internally to parse your request. The workaround for this would be to send your array properties with no index specified, i.e attachments[] instead of attachments[0].

 

You can read a bit more here: https://dev.frontapp.com/reference/attachments#send-multipart-request

 

--Maxime

Reply