Я загрузил несколько файлов в Extjs Classic. Теперь я хочу реализовать его в современном наборе инструментов, но есть проблема: нет поля fileButton. Поэтому я использую поле файла, но я не уверен, как я могу получить данные файла из поля файла вот код:
{
xtype: 'fieldset',
title: 'Attechments',
reference: 'attachmentfile',
padding: 10,
layout: {
type: 'vbox',
align: 'stretch'
},
defaults: {
labelWidth: 130
},
items: [
{
xtype: 'filefield',
text: 'Attach Files',
name: 'files',
listeners:{
change: 'onFileChange'
}
}
]
}
и в Viewcontroller:
onFileChange: function (field, e, value) {
// how to get fileField data so that i can upload via ajax and attach //more files options
}