Quantcast
Channel: Mendix Forum Questions
Viewing all articles
Browse latest Browse all 82389

Content-Type in uploaded filedocument

$
0
0

I have to sent the binary data of an excel-file as an attachment to a webservice. I uploaded the file as a filedocument in Mendix.

The webservice call reports the following error: Attachment file is not valid; validation errors: Unknown attachment file type (content type: application/octet-stream)

I asume that Mendix is setting the content type application/octect-stream at the upload of the fieldocument. Is there a way to adjust the contenttype in Mendix before calling the webservice. The correct contenttype for a xslx would be: application/vnd.openxmlformats-officedocument.spreadsheetml.sheet

Thanks in advance

Marcel Kappert


Viewing all articles
Browse latest Browse all 82389

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>