У меня есть такой код:
getZipFile(){
Ext.Ajax.request({
url: "http://localhost:8081/myAppName/protected/upload/download.do",
method: 'POST',
params: {
entityId: this.props.currentEntityId
},
jsonData: litOfDocumentsIdINeed,
headers: {
'Content-Type': 'application/json'
},
callback: function (records, operation, success) {
//
// I have what I need at this point, it is inside of 'records'
// the problem is here: I get the document in records, but I need
// to Download it automatically, as soon as I receive these records
// But HOW?
//
}
})
}
Итак, я получаю этот файл, это хорошо, но как пойти дальше и автоматически загрузить его?