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 Apps / File attachment to upl...
Power Apps
Unanswered

File attachment to upload to one drive

(0) ShareShare
ReportReport
Posted on by 2

Hello all,

I am looking for tips on how to upload a file/s to one drive.

I looked up many youtube videos and they all talk about either Dataverse or share point. I was able to do it with Dataverse and I do not have a share point. 

I would like to have a small section where files can be uploaded to one drive once the submit button is hit.

Even if someone can point me to any article or any resource, it's helpful.

 

Thank you

Categories:
I have the same question (0)
  • SpongYe Profile Picture
    5,909 Super User 2026 Season 2 on at

    Hi @abhinav23 

     

    OneDrive for Business + Power Automate

    Sync, share, and store documents in OneDrive for Business then add Power Automate to make collaboration even easier.

     

    Here also a good article https://yzhums.com/39365/

     

    Hope this helps. 


    -----------------------
    PowerYsa Power Platform Enthusiast [LinkedIn] | [Youtube]

    I love to share my knowledge and learn from others. If you find my posts helpful, please give them a thumbs up 👍 or mark them as a solution ✔️. You can also check out my [@PowerYSA] for some cool solutions and insights. Feel free to connect with me on any of the platforms above. Cheers! 🍻

  • abhinav23 Profile Picture
    2 on at

    Hello @SpongYe 

    I looked at the article but I am not sure if that is something I was looking for. 

    I am new to this so please forgive me.

    So I did look at the Attachment control in power apps. 

     

    On my screen, I wanted to have a small upload file icon and a submit button.

    Could you share some more on it.

  • WarrenBelz Profile Picture
    156,409 Most Valuable Professional on at

    Hi @abhinav23 ,

    I actually do this in an app, but it is a bit tricky, so please follow closely each step. Firstly I am assuming there is only one attachment in the control.

    In the example below, the Attachment control is called acAttachOD and I have a hidden Image control called imAttachOD which has the Image property of

    First(acAttachOD.Attachments).Value

    Now the Flow is fairly simple

    WarrenBelz_0-1696034412716.png

    and on the button to save (my Flow is called AttachtoOneDrive)

    With(
     {
     _JSON: 
     With(
     {
     _JSONI: 
     JSON(
     imAttachOD.Image,
     JSONFormat.IncludeBinaryData
     )
     },
     Mid(
     _JSONI,
     Find(
     ",",
     _JSONI
     ) + 1,
     Len(_JSONI) - 
     Find(
     ",",
     _JSONI
     ) - 1
     )
     )
     },
     AttachtoOneDrive.Run(
     First(acAttachOD.Attachments).Name,
     _JSON
     )
    )

     

    Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

    MVP (Business Applications)   Visit my blog Practical Power Apps

     

     

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

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 358 Most Valuable Professional

#2
11manish Profile Picture

11manish 207 Super User 2026 Season 2

#3
MS.Ragavendar Profile Picture

MS.Ragavendar 150 Super User 2026 Season 2

Last 30 days Overall leaderboard