cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
atltt
Level: Powered On

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
Community Support Team
Community Support Team

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
Community Support Team
Community Support Team

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

Community Support Team
Community Support Team

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
thirdimage

Power Automate Community User Group Member Badge

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

firstImage

Incoming: New and improved badges!

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

fifthimage

Microsoft Learn

Learn how to build the business apps that you need.

sixthImage

Power Platform World Tour

Find out where you can attend!

seventhimage

Webinars & Video Gallery

Watch & learn from the Power Automate Community Video Gallery!

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