Bui Tuan Anh Thank you for posting your question in Microsoft Q&A. In Azure portal test blade, multipart/formdata
is not supported yet and you can only upload binary data. Here are the other options to test the API in API Management.
- Use Postman - Postman supports uploading file with content type
multipart/formdata
and here is doc reference: https://www.postman.com/postman/workspace/postman-answers/documentation/13455110-00378d5c-5b08-4813-98da-bc47a2e6021d you can follow. - Developer Portal Test Console - In Developer portal test console, you have the option to attach the file for OpenAPI V2. OpenAPI V3 support is not there yet and here is the open issue: File upload not working for multipart/form-data
Note: Make sure that you define API with OpenAPI specification and add endpoint with request body "content-type = multipart/form-data" as shown in the screenshot.
If you have any feedback on this feature or any other ideas, feel free to submit directly to our product team via https://aka.ms/apimwish. I hope this helps with your question and let me know if you have any other questions.
If you found the answer to your question helpful, please take a moment to mark it as "Yes" for others to benefit from your experience. Or simply add a comment tagging me and would be happy to answer your questions.