I am trying to upload multiple images at once using the filefield xtype but when I get the list of selected files, the list is not in the order I selected them in. It looks to be automatically sorting them based on some other criteria. Is there a way to get list of file names based on the order I selected them?
xtype: 'filefield',
id: 'figureFileUpload',
buttonText: 'Browse Files From Device',
handler: 'onBrowseFiles',
buttonOnly: true,
multiple: true,
height: 45,
listeners: {
change: 'figureFilefieldChange',
render: function (me, eOpts) {
var el = document.getElementById(me.id+'-button-fileInputEl');
if(me.multiple) {
el.multiple = true;
}
}
}