Error '.xls' is in a different format than specified by the file extension


Staff member
I found a plugin that helps me export ExtJS grid data into MS Excel sheet.
<a href="" rel="nofollow noreferrer"></a>

all works great except for the error I'm getting before opening the file.

<img src=" " alt="enter image description here">

Peace of my code:

if (Ext.isChrome || Ext.isGecko) { // local download
            var gridEl = this.getEl();

            var el = Ext.DomHelper.append(gridEl, {
                tag: "a",
               download: title + "-" + Ext.Date.format(new Date(), 'Y-m-d') + '.xls',
               href: location




One solution suggested that i remove the apostrophe so i tried:

download: title + "-" + Ext.Date.format(new Date(), "Y-m-d") + ".xls",

But no luck. Any idea?