I'm trying to download a file named N5AETC.TXT.
What must be the specified at the Content-Type field of the header?
I tried several options.
When using 'text/plain' the result changes to a display, not a file. If it is 'application/text' it appends a .php at the end of the file name - already set as "N5AETC.TXT".
Just for test I changed to 'application/msword' and the extension appended was '.doc'. If I have an option to have '.txt' appended I can simply use "N5AETC" and let it make what it wants. But I don't want my file named .php...
What is the work around?
Thanks
What must be the specified at the Content-Type field of the header?
I tried several options.
When using 'text/plain' the result changes to a display, not a file. If it is 'application/text' it appends a .php at the end of the file name - already set as "N5AETC.TXT".
Just for test I changed to 'application/msword' and the extension appended was '.doc'. If I have an option to have '.txt' appended I can simply use "N5AETC" and let it make what it wants. But I don't want my file named .php...
What is the work around?
Thanks