cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
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
Highlighted
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
Highlighted
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
firstImage

Power Platform Online Conference

Join us for the first ever Power Platform Online Conference!

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!

seventhimage

Webinars & Video Gallery

Watch & learn from the Power Automate Community Video Gallery!

Top Solution Authors
Top Kudoed Authors
Users online (6,209)