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

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

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

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
Community Conference

Power Platform Community Conference

Check out the on demand sessions that are available now!

MPA Community Blog

Power Automate Community Blog

Check out the community blog page where you can find valuable learning material from community and product team members!

Top Solution Authors
Top Kudoed Authors
Users online (9,796)