PDA

View Full Version : Ext.form.Form with fileUpload:true



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';
}

jack.slocum
31 May 2007, 2:15 PM
Makes sense. Thanks!