CMS-2502 Replace proprietary multipart (upload) functionality. Reverted changes.
There was an issue with the mime type parsing, so we roll back the changes for the moment.