I want to upload a file using Request api.
I successfully tested it as a Postman program.
But I don't know how to use the invoke web service action in the power automate desktop.
Please refer to the setting method below.
I referred to the link below.
https://ashiqf.com/2021/07/25/how-to-use-form-data-and-form-urlencoded-content-type-in-power-automate-or-logic-apps-http-action/
[Result Error message]
HTTP Status 500 – Internal Server Error
Message
Failed to parse multipart servlet request; nested exception is java.io.IOException: org.apache.tomcat.util.http.fileupload.FileUploadException: the request was rejected because no multipart boundary was found
Description
The server encountered an unexpected condition that prevented it from fulfilling the request.
Exception
org.springframework.web.multipart.MultipartException: Failed to parse multipart servlet request; nested exception is java.io.IOException: org.apache.tomcat.util.http.fileupload.FileUploadException: the request was rejected because no multipart boundary was found
File upload api is not available with invoke web service action, refer to curl -x and test with rundos action.
I want to upload a file using Request api.
I already test this postman and its working great however when Im using the invoke web service in power automate desktop im getting this kind of error.: failed to extract params: id: error parsing form
multipart: NextPart: EOF
version: error parsing form
multipart: NextPart: EOF
This is my request body:
------WebKitFormBoundary7MA4YWxkTrZu0gW
Content-Disposition: form-data; name="id"
27
------WebKitFormBoundary7MA4YWxkTrZu0gW
Content-Disposition: form-data; name="version"
4
------WebKitFormBoundary7MA4YWxkTrZu0gW
Content-Disposition: form-data; name="file"; filename="test.txt"
Content-Type: application/octet-stream
VEVTVCBURVNUIFRFU1QgVEVTVCBURVNUIFRFU1QgVEVTVCBURVNU
------WebKitFormBoundary7MA4YWxkTrZu0gW
Content-Disposition: form-data; name="name"
text
------WebKitFormBoundary7MA4YWxkTrZu0gW--
name: error parsing form
multipart: NextPart: EOF
Hello. I didn't understand the meaning of the question. What does query creation mean?
I used curl to post the created api.
The program was handled by CMD(Run DOS action).
Hi, how did you generate the curl -X POST query? what application did you use?
I succeeded in uploading the file through the test.
(I struggled with small quotes and big quotes.)
Share the successful query below.
curl -X POST %str_url% -H "Content-Type: multipart/form-data" -F "subject_id=%str_subject_id%" -F "id=%str_id%" -F "password=%str_pw%" -F "uploader=@%fileP_uploader%"
Many people look forward to being helped.
Thank you @Agnius
Hi, @Agnius
Thank you always for your answer.
I've tested it in many ways
The conclusion was that the invoke web service had no file upload function, so it kept failing.
Let's test the Run dos curl.
Thank you.
same question
https://powerusers.microsoft.com/t5/Power-Automate-Desktop/Power-Automate-Desktop-Invoke-web-service-send-file/td-p/1872399
Try following this walkthrough: https://powerusers.microsoft.com/t5/Power-Automate-Desktop/Walkthrough-How-to-use-Invoke-Web-Service-with-multipart-form/m-p/981388
It presumably doesn't really work too well with file uploads, but the comments under the post also include a description of how to do it via the Run DOS command action.
-------------------------------------------------------------------------
If I have answered your question, please mark it as the preferred solution. If you like my response, please give it a Thumbs Up.
I also provide paid consultancy and development services using Power Automate. If you're interested, DM me and we can discuss it.
eetuRobo
18
Super User 2025 Season 1
Nived_Nambiar
10
Super User 2025 Season 1
stampcoin
6