190
Views
3
Comments
Solved
set mime type in reactive web apps
Question

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 


2021-03-05 13-56-11
Ricardo Pereira
 
MVP
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

UserImage.jpg
BigSlikTobi

Thanks dude!!!

2021-03-05 13-56-11
Ricardo Pereira
 
MVP

You're welcome! ;)


Best regards,

Ricardo M Pereira

Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.