<policies>
<inbound>
<base />
<!-- Step 1: Set backend service to Azure Blob Storage -->
<set-backend-service base-url="@{ return "https://{{storage account}}.blob.core.windows.net/" ;}" />
<rewrite-uri template="@{ return context.Request.Url.Query.GetValueOrDefault("blobContainer", "test") + "/" +
context.Request.Url.Query.GetValueOrDefault("fileNameWithExtension", "test.mp4");}" />
<set-method>PUT</set-method>
<set-header name="Host" exists-action="override">
<value>sacuksnprdiidlrawast6001.blob.core.windows.net</value>
</set-header>
<set-header name="X-Ms-Blob-Type" exists-action="override">
<value>BlockBlob</value>
</set-header>
<set-header name="X-Ms-Version" exists-action="override">
<value>2019-12-12</value>
</set-header>
<set-header name="Accept" exists-action="override">
<value>application/json</value>
</set-header>
<authentication-managed-identity resource="https://storage.azure.com/" />
</inbound>
<backend>
<base />
</backend>
<outbound>
<base />
</outbound>
<on-error>
<base />
</on-error>
</policies>
with above policy , I am able to upload the file by sending it as binary in POST Call . however, I want to upload it as multipart/form-data within File key
I need help in parsing the multipart form-data body File key. as context.Request.File is not supported in APIM. dsadsadsadasdsadnmslakjfd;s;fk;dks;lfkl;dks;kf;ldsk;lfds;fdljfldjslaf
New contributor
Vivek Chandel is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.