Professional Documents
Culture Documents
Panel', {
width: 400,
bodyPadding: 10,
frame: true,
renderTo: Ext.getBody(),
items: [{
xtype: 'filefield',
name: 'photo',
fieldLabel: 'Photo',
labelWidth: 50,
msgTarget: 'side',
allowBlank: false,
anchor: '100%',
}],
buttons: [{
text: 'Upload',
handler: function() {
if(form.isValid()) {
form.submit({
url: 'photo-upload.php',
success: function(fp, o) {
});
}
}]
});
https://docs.sencha.com/ext/6.5.1/classic/Ext.form.field.File.html