cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
WillPage
Level 8

Re: HTTP Post multipart/form-data

@davidlist87  Your file content is not base64 encoded. Where you are specifying the file content, use an expression like base64(body('whatever')?['File_Content']) where whatever is the name of the action where you got that file content from dropbox.

 

Write base64() in the expression builder, click between the brackets then switch to the dynamic content tab and find the File Content.

davidlist87
Level: Powered On

Re: HTTP Post multipart/form-data

@WillPage thanks for your help but it seams to be throwing an input error.

My expression is: base64(body('When a file is modified')?['triggerBody()'])

Feel like we are really close...

Image 5.jpg

WillPage
Level 8

Re: HTTP Post multipart/form-data

You need to use Get File Content as an additional step. After your trigger, add the Dropbox Get File Content action, and use its output in your HTTP POST.

davidlist87
Level: Powered On

Re: HTTP Post multipart/form-data

@WillPage I was able to get the base64 conversion to work but am still getting the same error.

Thanks very much for your help mate👍

Image 7.jpg

 

WillPage
Level 8

Re: HTTP Post multipart/form-data

The two properties of the body should be $content and $content-type. You've omitted the dollar signs.

I took the time to document this here: https://willpagenz.wordpress.com/2019/12/20/using-the-http-action-to-post-multipart-form-data-in-pow...
davidlist87
Level: Powered On

Re: HTTP Post multipart/form-data

@WillPage you are a legend! Thank you so much to your contribution on this subject. Not a lot a info around about and you were all over it 👍

Image 10.jpg

Helpful resources

Announcements
firstImage

Power Platform Online Conference

Join us for the first ever Power Platform Online Conference!

firstImage

Coming Soon: T-shirt Design Contest

Keep your eyes open for our upcoming T-shirt design contest!

firstImage

Incoming: New and improved badges!

Look out for new contribution recognition badges coming SOON!

firstImage

New & Improved Power Automate Community Cookbook

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

thirdimage

Power Automate Community User Group Member Badge

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

sixthImage

Power Platform World Tour

Find out where you can attend!

Top Solution Authors
Top Kudoed Authors
Users online (5,477)