Hi,
I have a media entity in my service which I use to upload files from my UI5 webapplication to the SAP ERP backend and connected content servers.
On the client I use a sap.m.UploadCollection control for the file upload. I don't know if it's the control or the browser which sets the content-type header for the POST request.
I have some file types like .mpp or .pages for which no MIME-type is determined and thus the content-type header is not transmitted.
Since gateway checks the submitted content-type it refuses to upload files which have not set the content-type header.
According to this discussion no content-type header should be submitted by the sender if the MIME type is unknown.
What can I do about it?
Why does gateway do this check and why does it refuse files without content-type header?