Hi,
I'm wondering how to use the REST endpoint correctly https://docs.superoffice.com/en/api/reference/restful/rest/Document/v1DocumentEntity_SetDocumentStreamFromId.html
This endpoint behaves correctly whenever I upload .pdf files using "Content-Type" and "application/octet-stream". But when uploading .msg files with the same content type "application/octet-stream". Everything works except that the content within the binary files has an added "prefix" instead of only the binary content. The consequence is failing to open the document inside Super Office online. I've also tried using content-type application/msword with same result.
--eada92e1-9621-4759-b670-9d05f01d258d
Content-Type: application/octet-stream
Content-Disposition: form-data; name="=?utf-8?B?SHVzayDDpSBtZWxkZSBkZWcgcMOlIGZyb2tvc3RzZW1pbmFyIDIuIGFwcmlsISAoMSkubXNn?="; filename="=?utf-8?B?SHVzayDDpSBtZWxkZSBkZWcgcMOlIGZyb2tvc3RzZW1pbmFyIDIuIGFwcmlsISAoMSkubXNn?="
ÐÏࡱá > þ
I hope that you can help me with this or have any suggestion to get around this.
Sincere regards
Truong