Why doesn't AS3 FileReference Download Work in IE/FF (Works fine in Chrome)
I am generating an Excel file with Java on the back-end and it seems to work just fine in Chrome but for whatever reason it doesn't in FF/IE. I have the very latest of Flash in each browser listed from this site: http://helpx.adobe.com/flash-player/kb/find-version-flash-player.html
I'm sending XML to the server, it is generating the Excel and sending it to the Flash. I'm performing the export by doing the following:
private var _fileRef:FileReference;
private function exportReport(e:MouseEvent😞void
{
_fileRef = new FileReference();
_fileRef.addEventListener(Event.COMPLETE, excelExportCompleteHandler);
_fileRef.download(new URLRequest("exportReport"), "report.xlsx");
function excelExportCompleteHandler(e:Event😞void {
trace('complete');
}
}
There are no error messages from Java/Flash. The browse popup comes up and I save the file the same in IE/FF as I do in Chrome. the trace('complete') is executed every time in every browser but the file only shows up when using Chrome.
I also searched my filesystem and found temporary internet file shortcuts with the name of the file I was trying to download so it's as if it started the download but didn't finish it for some reason. The location of those files is AppData\Roaming\Microsoft\Windows\Recent Items
