Quantcast
Channel: SCN : All Content - SAP Gateway
Viewing all articles
Browse latest Browse all 2823

Uploading files via gateway refused if content-type header not set

$
0
0

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?

 

20160118_150552_GW_No_content-type.png


Viewing all articles
Browse latest Browse all 2823

Trending Articles



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