Animal
31 May 2007, 12:09 PM
The first few lines of the constructor need a tiny addition. People are having a hard time doing file uploads! My additions in bold:
render : function(ct){
ct = Ext.get(ct);
var o = this.autoCreate || {
tag: 'form',
method : this.method || 'POST',
id : this.id || Ext.id()
};
if (this.fileUpload) {
o.enctype = 'multipart/form-data';
}
render : function(ct){
ct = Ext.get(ct);
var o = this.autoCreate || {
tag: 'form',
method : this.method || 'POST',
id : this.id || Ext.id()
};
if (this.fileUpload) {
o.enctype = 'multipart/form-data';
}