I've been able to write a simple HttpPost RestResource that would accept a Base64 string as one of the parameters and make an attachment out of it.
But actually we want to use multipart instead of base64 strings. After some googling I found this blog which literally says:
REST API now supports the MIME multipart content-type standard which allows you to upload large binary files of up to 500Mb
But I also found some docs that say:
Apex REST currently doesn't support requests of Content-Type multipart/form-data.
Who should I believe? They are both on Salesforce site and both seem to be trustworthy. I've also found a lot of examples how to make an outbound multipart request, but didn't find any examples of inbound ones.
Is there a way(and an example) to write an apex HttpPost method that would accept multipart?