Showing results for 
Search instead for 
Did you mean: 
Level: Powered On

how to save an image from the download uri to one drive

I need to download an image from customer API and save it in OneDrive using Flow.

I be able to get the download URI from our customer.

now i using Create file to save this file to One Drive :

This is how i set up in Flow - Create file

Folder path 😕

File name :*.* ( every image has different extension; not sure how to do here )

file content:{body('Return_information_about_downloaded_assets')}


Result :

i got an empty file *.* in One Drive folder.

look like the connection is establish , but the content did not get transfer for some reason ?

Please advice.



Super User
Super User

Re: how to save an image from the download uri to one drive

Hi @vnguyen1  the filename needs to have a proper name e.g. matt.jpg to create it properly. Is there anything being returned from the API to help with the identity of the file?

Did my reply help? Please give it a thumbs up.
Did I answer your question? Please mark my post as a solution!
If you liked my response, please consider giving it a thumbs up. THANKS!

Proud to be a Flownaut!

Community Leader: Black Country PowerApps & Flow User Group

Level: Powered On

Re: how to save an image from the download uri to one drive

hi @MattWeston365, thanks for your response. i tried to put some extension as *.esp, the file was still empty content. the file extension is different from picture to picture since i try to save the image to OneDrive from the URI link. not sure how to achive this ? and why the file is empty ? your suggestion is appriciated. Thanks

Helpful resources


New & Improved Power Automate Community Cookbook

We've updated and improved the layout and uploading format of the Power Automate Cookbook!


Power Automate Community User Group Member Badge

Fill out a quick form to claim your user group badge now!


Incoming: New and improved badges!

We've given our badges an overhaul and also added some brand new ones!


Microsoft Learn

Learn how to build the business apps that you need.


Power Platform World Tour

Find out where you can attend!


Webinars & Video Gallery

Watch & learn from the Power Automate Community Video Gallery!

Top Solution Authors
Top Kudoed Authors (Last 30 Days)
Users online (4,709)