PDA

View Full Version : Error sending file by getForm().submit()



BrunoSales
26 Mar 2012, 5:26 PM
Hi,

I have problem when sent file upload. Do not enter the url defined and also displays no error in console of IE9. Problem occur only in IE 9.

My Code:



var formUpload = new Ext.FormPanel({
border : false,
buttonAlign : 'left',
items : [{
xtype : 'fileuploadfield',
id : 'file',
emptyText : 'Selecione o arquivo',
fieldLabel : 'Arquivo',
name : 'file',
buttonText : '',
width : 575,
buttonCfg : {
iconCls : 'upload-icon'
}
}],
buttons : [{
text : 'Enviar arquivo',
handler : function() {
if (formulario.getForm().isValid()) {
formulario.getForm().submit({
url : 'cad_solicitacao_atendimento.php?action=uploadarquivos',
waitMsg : 'Enviando arquivo...',
success : function(formulario, o) {
strArquivos.load();
Ext.MessageBox.alert('Aviso',
"Arquivo enviado com sucesso!");
}
});
}
}
}]
});


Thanks,

mitchellsimoens
27 Mar 2012, 10:06 AM
What is the error?

BrunoSales
27 Mar 2012, 10:54 AM
Error in the console would not, but it does not send anything for PHP. In Firefox it enters and sends the file.

Thanks,