Guys, I update my ExtJS copy to 2.2.0 (rev 2547), but still cant upload files on my desktop application getting error:
ext-all-debug.js (line 6868), syntax error [foofile] => Array\n
Please help me. I have FF 3.0.4 installed.
Here is the code:
Animal, I'm sorry, but Fiddler does not see any traffic on me :(Code:openFooImportWindow = function (desktop, barName, barId) {
var win = desktop.getWindow('foo-import-win-' + barId);
var form = new Ext.form.FormPanel({
baseCls: 'x-plain',
layout: 'fit',
fileUpload: true,
items: [{
name: 'foofile',
fieldLabel: 'Foo file:',
xtype: 'fileuploadfield'
}]
});
if (!win) {
win = desktop.createWindow({
id: 'foo-import-win-' + barId,
title: barName + ' - Foo Import',
width: 400,
height: 116,
iconCls: 'import',
resizable: false,
maximizable: false,
minimizable: false,
layout: 'fit',
plain: true,
bodyStyle: 'padding:10px;',
buttonAlign: 'center',
modal: true,
items: form,
buttons: [
{
text: 'Import',
handler: function(){
if(form.getForm().isValid()){
form.getForm().submit({
url: 'import_ci.php',
waitMsg: 'Uploading file...',
success: function(form, o){
msg('Success', 'Processed file "'+o.result.file+'" on the server');
}
});
}
}
},
{text: 'Cancel', handler: function() { win.close(); } }
]
});
}
win.show();
}
BTW an example lib/ext/examples/form/file-upload.html works fine ...

