cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Helper I
Helper I

Losing filename extension with user submitted file.

Hello, my flow allows users to input a file. That file is then emailed to another user as an attachment. However, this means the file loses it's filename attachment in the email. It happens with every single type of file. See pictures for reference.

 

Getting User data:

 fileiss1.PNG

 

How email is sent:

fileiss2.PNG

 

Result in Email:
fileiss3.PNG

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Community Support
Community Support

Re: Losing filename extension with user submitted file.

Hi @atltt,

 

Yes, if the file uploaded by Button is used, the file name and file type cannot be obtained, so the file in the attachment cannot be read.

MS Flow does not currently support getting file names and file types from Button. You could consider adding text input to let user enter the file name and select the file type.

Set both fields to be required fields.

Then configure the file name and file type in Attachment Name, taking care not to leave spaces in between.

14.PNG

Please take a try.

 

Best Regards,

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.

View solution in original post

2 REPLIES 2
Highlighted
Community Support
Community Support

Re: Losing filename extension with user submitted file.

Hi @atltt,

 

Yes, if the file uploaded by Button is used, the file name and file type cannot be obtained, so the file in the attachment cannot be read.

MS Flow does not currently support getting file names and file types from Button. You could consider adding text input to let user enter the file name and select the file type.

Set both fields to be required fields.

Then configure the file name and file type in Attachment Name, taking care not to leave spaces in between.

14.PNG

Please take a try.

 

Best Regards,

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.

View solution in original post

Highlighted
Community Support
Community Support

Re: Losing filename extension with user submitted file.

Hi @atltt ,

 

Some Update, there is currently no way to get the file name from Dynamic content.

But I saw some blogs mentioning that it seems that we can use Expression to get the file name.

I did a test on my side and can indeed get the file name of the file uploaded from the button.

Sorry for the information I provided earlier.

Image reference:

8.PNG

Please take a try.

 

Best Regards,

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.

Helpful resources

Announcements
firstImage

Super User Program Update

Three Super User rank tiers have been launched!

firstImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

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!

Top Solution Authors
Top Kudoed Authors
Users online (7,641)