Upload chunked content
I was able to get at least the first patch request to work. In order to reach this point, I did the following:
-Add httpRuntime maxRequestLength to the config to override the default
-Add requestLimits maxAllowedContentLength to requestfiltering security config to override the default
-Removed all headers from the Logic-App HTTP connector (they get inserted automatically)
-Made sure that the file size is large (over the 50MB limit) as it seems that the Logic-App decides when to chunk and when not to chunk, regardless of what you suggest
-Added the Content header "Content-Range" in the response from the API
Now, after the POST request, I am getting the first PATCH request from the Logic-App. But no matter what I do when responding back to the Logic-App's PATCH request, the Logic-App just keeps erroring out with:
InvalidContentRangeHeader. The response to partial content upload request was not valid. The returned range header value '<null>' is not in the expected range of '0-47230520' with unit set to 'bytes'
I tried various ranges for the Content-Range header in the PATCH response, but keep getting that same error. There is no mention of Content-Range header in the MS guide and there are no samples. Even with it hardcoded as below, I get that same error:
responseMessage.Content.Headers.Add("Content-Range", "bytes 8388608-16777215/47230520");
Did you manage to resolve this issue?