web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Unable to upload a PDF...
Power Automate
Unanswered

Unable to upload a PDF file into application using RUN DOC Command

(0) ShareShare
ReportReport
Posted on by 31

facing issue :
curl: (26) Failed to open/read local data from file/application
While trying to upload a file into my application with Run DOC Command and in that i am using Curl expressio  as below:

curl -i -X POST "https://%evURL%/%evApp%/api/v4/documents/%baseDocId%/file" -H "Authorization: Bearer %EvBearerToken%" -H "Content-Type: multipart/form-data" -F attributes="{\"documentTypeId\":\"%DocumentId%\",\"baseProfileId\":\"%baseProfileId%\", \"isReferenceDocument\":\"false\"}" -F file=@F:\EVI\Data\Yelp Inc\Yelp Inc\Mohammed, Mosin\vamsi krishna_2.pdf
Can some one help me to upload a file using the Curl expression.


  • Nived_Nambiar Profile Picture
    18,138 Super User 2026 Season 1 on at

    Hi @Vamsi_Envoy 

     

    is it working when you are trying to use exact values of variables directly in curl command ?

    Thanks & Regards,

    Nived N 🚀

    LinkedIn: Nived N's LinkedIn
    YouTube: Nived N's YouTube Channel

    🔍 Found my answer helpful? Please consider marking it as the solution!
    Your appreciation keeps me motivated. Thank you! 🙌

  • Agnius Bartninkas Profile Picture
    Most Valuable Professional on at

    I would assume your file path needs to be in quotes, as it is a string. Have you tried that?

    -------------------------------------------------------------------------
    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.

  • Vamsi_Envoy Profile Picture
    31 on at

    @Nived_Nambiar Yes it's working fine previously, the thing is i am trying to rename my file with particular name and trying to upload it in that scenerion i am facing the issue.

  • Agnius Bartninkas Profile Picture
    Most Valuable Professional on at

    Well, have you tried encapsulating your file path in quotes?

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Automate

#1
Mohsin Ali Profile Picture

Mohsin Ali 426

#2
11manish Profile Picture

11manish 349 Super User 2026 Season 2

#3
M Bilal Khan Profile Picture

M Bilal Khan 308

Last 30 days Overall leaderboard