set mime type in reactive web apps

Hi guys, 

I am using excel to list in a server action with an binary as output. I want to use this server action to download a list to excel in a reactive web app. Currently I am unable to set the mime type / content type of the download anywhere. So for every download the user needs to select the application (excel) he wants to open the download with. 

 This is a really bad user experience but I don´t know how to solve the issue.



Does anyone know some help? 


Best regards

Tobias 


Solution

Hi,


If you concat the filename with + ".xlsx" your file will be recognized as Excel file.

I think that this can help you.


Best regards,

Ricardo M Pereira

Solution

Thanks dude!!!

You're welcome! ;)


Best regards,

Ricardo M Pereira