Developer Portal 'Try It' Fails to Upload File for multipart/form-data

Kah Wei 25 Reputation points
2025-04-24T08:14:00.37+00:00

Hi, I'm currently using Azure API Management and have created an HTTP API that accepts file uploads via multipart/form-data. The API works correctly when tested using tools like Postman or through my own backend integration, the file is successfully received and processed, so I'm sure the API itself is functioning as expected.

However, when using the Developer Portal's 'Try It' feature, file upload fails. The API receives either an empty file or a request without any file content, even though I do select a file via the upload icon in the portal UI.

From my understanding, this appears to be a limitation or bug in the Developer Portal, it seems to be not able to handle properly the binary file data in multipart/form-data requests.

May I know how to resolve this issue?

Thanks in advance!

Azure API Management
Azure API Management
An Azure service that provides a hybrid, multi-cloud management platform for APIs.
2,369 questions
0 comments No comments
{count} votes

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.