I'm trying to open a PDF file inside an iframe after rename the file but so far it doesn't work. I have done this because if I load the response content inside the iframe directly all works except the filename who appears as byte array code.
I have something like this:
this.load("data:application/pdf;base64,"+btoa((response),"file.pdf");
load:function(uri, name){
var iframe =Ext.get('myIframe');
var link = document.createElement("a");
link.download = name;
link.href = uri;
link.target = iframe;
link.click();
}I need that the PDF file be open inside this iframe but I don´t know the way to reach this.