function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
VarunCVarunC 

ContentType="application/xml" Error throwing

An error is being thrown when page throws a FileSave dialog.

I've created a VF page using this markup:
{!ExportXML}


The error shown on file save dialog is this:
"unable to download from na6.visual.force.com"

Please Note that the File is downloaded fine in Firefox, it throws error in IE only. Can anyone tell me why so it is happening in IE only?
Anand@SAASAnand@SAAS
This a "ContentType" related issue with IE. I'd suggest that you create a standalone XML file with content type set and try to open the same in IE and resolve it there first.
VarunCVarunC
I've already done that check. The VF page is opening XML in IE pretty much fine as a normal XML file if I use contentType="text/xml". With this contenttype I can save the File in PC but I've to manually go to File menu and click Save As and save it on PC, I want it to throw a File Save dialog on open automatically, so that it can be saved directly, for that i used "application/xml" ContentType value.
PSteves91PSteves91

Has this issue been resolved? I have a similar issue.

Thanks!