Open URL - Set File Name
Posted: Thu Mar 06, 2014 9:21 pm
Hi everyone,
I have a PHP script that generates a DITA file from an HTML page using the PHP transformToXml() method. Then when I want to open the resulting DITA file via its URL, oXygen will set the file name to the PHP script automatically.
Here is the URL I am using (changed for privacy): http://www.mysite.com/php/my_script.php?url=my_url
The loaded file name will automatically be my_script.php, eventhough it's an XML file (I have set its mime-type to application/xml).
I was wondering if there was any way of changing that.
Best regards,
Jonathan
I have a PHP script that generates a DITA file from an HTML page using the PHP transformToXml() method. Then when I want to open the resulting DITA file via its URL, oXygen will set the file name to the PHP script automatically.
Here is the URL I am using (changed for privacy): http://www.mysite.com/php/my_script.php?url=my_url
The loaded file name will automatically be my_script.php, eventhough it's an XML file (I have set its mime-type to application/xml).
I was wondering if there was any way of changing that.
Best regards,
Jonathan