Quantcast
Channel: SCN : All Content - All Communities
Viewing all articles
Browse latest Browse all 3212

How is content-type header determined for file uploads?

$
0
0

Hi,

 

In my application I use the sap.m.UploadCollection for uploading files to the server.

The upload URL which is used for the POST request is my OData service on SAP Gateway.

 

In Uploading files via gateway refused if content-type header not set I have detailed that gateway refuses the upload if the request does not contain the content-type header.

 

Since I also allow users to upload some uncommon file types like .pages no content-type is determined in such cases.

 

Who is responsible to determine the content type (MIME type) for file uploads?

Is it the browser, or the UI5 framework or my application itself?


Viewing all articles
Browse latest Browse all 3212

Trending Articles



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