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

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Upload Video files fro...
Power Automate
Unanswered

Upload Video files from PowerApps to SharePoint library

(0) ShareShare
ReportReport
Posted on by 10

We have a flow that uploads attachments from PowerApps to the SharePoint document library and to read the file content "dataUriToBinary" has been used. However, it is working for all the file types except video files. Being a newbie to PowerAutomate world, any help/guidance would be appreciated.

Error is shown in PowerApps is

FlowName.Run failed : {"error" : { "code" :413, "Message" : The response is not in a JSON format", "innerError" : "Cannot read server response"}}

Categories:
I have the same question (0)
  • fchopo Profile Picture
    8,003 Moderator on at

    Hi @ishwar 

    2 weeks ago I helped in solving a similar problem, in that case with a png file: Solved: Re: Powerapps -> onedrive image in base64 not conv... - Power Platform Community (microsoft.com)

    Could you try to have a look at the base64 value and remove header ("data:video/...;base64,") and "==" end characters?

    Hope it helps!

    Ferran

  • ishwar Profile Picture
    10 on at

    Hi @fchopo 

    Thanks for your response
    Sorry, but I didn't get the mentioned thread and the changes you mentioned. My implementation is exact replica of the below-mentioned blog. Where do you want me to update?
    PowerApps upload file to SharePoint document library - SPGuides

  • fchopo Profile Picture
    8,003 Moderator on at

    When flows is receiving the base64 image, which value are you receiving?

  • ishwar Profile Picture
    10 on at

    Hello,

    Apologies for the confusion. I have observed it with multiple video files and .mp4 files with sizes less than 80MB are working fine and getting uploaded to the SharePoint library. The above error is occurring for files having a size of more than 80 MB. 

    The attachment control's Maximum Attachment Size (in MB) is set to - 250.

  • fchopo Profile Picture
    8,003 Moderator on at

    Hi @ishwar 

    According to this Microsoft official blog post: JSON for canvas apps | Microsoft Power Apps the JSON function (in PowerApps) has no size limit for binary data or text strings beyond available memory on the device.

    So, it seems that the issue depends on the device you're running your Power App.

    Hope it helps!

    Ferran

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 522 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 364 Moderator

#3
abm abm Profile Picture

abm abm 243 Most Valuable Professional

Last 30 days Overall leaderboard