Create Download activity file extension
I am struggling to get the file extension set for an Excel (.xslx) download using the 'Create Download' activity.
I tried 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet' for the Content Type and also leaving it blank.
I notice that if I set a file extension in the Filename argument like report.xlsx, the download link always has the file name as just 'result'. If I drop the extension I see 'report' in the file download dialog of the browser but no file extension.
does anyone have this working?
thanks for any input!
-
Hi Anthony,
The Create Download activity attempts to show the content inline for file types that it considers to be safe. For all other files, it prompts the user to save the file, using the specified file name.
In this case, the ".xlsx" file extension is considered safe. The actual url used internally does end with "/result" which is likely what you're noticing. When you eliminate the extension, then the file name you specified is used which is why you then see "report".
0 -
Thanks for responding Ken.
I am a bit confused still because based on your response that xlsx is considered safe, I would have thought I would see the download dialog showing the file with the extension? I'm am trying to achieve a download with the extension there for the user -- otherwise they'd have to know to explicitly name it with a .xlsx when they save it for Excel to associate with the file type in their OS.
Is that possible?
thanks
Anthony
0
Bitte melden Sie sich an, um einen Kommentar zu hinterlassen.
Kommentare
2 Kommentare