Downloading a file with different extension

Posted by mysteryminds on 24-Feb-2016 09:13

I have a text file which is been generated dynamically and I would like to download that file as a specific format 

I have tried HTML5 

<a href="{!export#URL}" download="xyz.sgxt">download file</a>

but when i click that still its downloading the file is .txt format... Kindly someone suggest

All Replies

Posted by Mani Kumar on 24-Feb-2016 22:35

Hi,

In which specific format you want to download this file?

-Mani.

Posted by Mani Kumar on 24-Feb-2016 22:37

To be more specific, is it that you want to download the file in same format every time or it changes over a scenario?

Regards,

Mani.

Posted by mysteryminds on 25-Feb-2016 13:34

mani

Well I want to download the file in .sgi format....

Currently file contents are perfect only the extension is the problem  - Its now saying as .TXT

This thread is closed