cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
EmC
Regular Visitor

Upload a file via button flow - .pdf or .jpg

I'm sure this is simple for some people, but I'm basically teaching myself as I go.

 

I have a flow that is triggered from a button on mobile that does the following:

  1. Collect button inputs: date, text, numerical & file. File and some text inputs are optional. [Manually trigger a flow]
  2. Creates a new row in an excel table using the input information [Add a row in a table for Excel Online (Ondrive)]
  3. If there is a file (optional) [Condition], chooses one of OneDrive files [another Condition] and saves the file as a .jpg with a name produced from the inputs [Create File for OneDrive]

I would like the Create File connector to handle both .pdf and .jpg files. To that end I have two questions:

  1. Can I extract the file type from the file that was originally uploaded via the button? Currently, I just end the file name with '.jpg'.
  2. Is there a way to get my phone (running Android 8.0.0) to allow my to choose a .pdf or a file image. Currently I have the option to take a photo or choose an image from the photo library. Navigating to a pdf if not the issue, but .pdf files are greyed-out and cannot be selected for upload. I'm not sure if this is an issue with my Flow, the Flow app, or settings in my Android Phone.

Please advise.

3 REPLIES 3
Community Support
Community Support

Re: Upload a file via button flow - .pdf or .jpg

Hi @EmC,

 

I did a test on my side, the content of the button trigger output does not contain the name and type of the uploaded file.

I am afraid that this requirement cannot be achieved at present.

As for your second requirement, I don't have a suitable mobile phone and operating system to do similar tests, but I can upload pdf files when I test it in the Flow portal.

Image reference:

3.PNG

Best Regards,

Barry

Community Support Team _ Barry
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
EmC
Regular Visitor

Re: Upload a file via button flow - .pdf or .jpg

Thanks for the response. I can upload a .pdf via the portal as well - the only issue is getting the name right.

It's only an issue in mobile. Files that I navigate to are 'greyed-out' unless they are image files.

Is there another way to manually select a file as part of my flow? Preferrably on mobile.
Rodolfo1840 Advocate III
Advocate III

Re: Upload a file via button flow - .pdf or .jpg

I got the same issue. I cannot get the file name (and extension) from the Button Flow

Helpful resources

Announcements
MBAS Gallery 2020

MBAS Gallery 2020

Watch Microsoft Business Applications Summit sessions on-demand.

firstImage

New Ranks and Rank Icons released on April 21!

The time has come: We are finally able to share more details on the brand-new ranks coming to the Power Automate Community!

firstImage

Now Live: Power Virtual Agents Community!

We are excited to announce the launch of Power Virtual Agents Community. Check it out now!

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

Community Summit North America

The top training and networking event across the globe for Microsoft Business Applications

Top Solution Authors
Users online (7,754)