Un foro de discusión para nuestra comunidad de hispano hablante
By erick43
#784801
Saludos,

Actualmente me encuentro realizando una aplicacion en processmaker 3.0.1.5, en estos momentos necesito hacer un plugin en ext js, donde pueda subir un archivo al servidor y posteriormente leerlo. Dicho lo anterior, al momento de obtener el archivo en el PHP, lo objeto $_FILES, me sale nulo,

Actualmente tengo el siguiente codigo:

-- CODIGO ext JS

var pnlCargarArchivo = new Ext.FormPanel({
id:'pnlCargarArchivo',
width:250,
autoHeight:true,
autoScroll: true,
layout:'fit',
items: [{
xtype: 'fileuploadfield',
id: 'archivosID',
name: 'archivosName',
emptyText: 'Seleccione el archivo de terceros',
fieldLabel: 'Photo',
buttonText: '',
buttonCfg: {
iconCls: 'upload-icon'
}
}],
buttons: [
{
text: 'Cargar y procesar archivo',
handler: function() {
var form = pnlCargarArchivo.getForm();
if(form.isValid()){
form.submit({
url: 'subirArchivo.php',
waitMsg: 'Subiendo y procesando archivo',
success: function(fp, o) {
Ext.Msg.alert('Exito', 'Su archivo ha sido transformado.');
},
failure: function (fp, o){
Ext.Msg.alert('Falla', 'Su archivo no ha sido transformado.');
}
});
}
}
}
]
});

var cargarArchivoWindow = new Ext.Window({
title: "Cargar Archivo Terceros",
layout: 'fit',
closeAction: "hide",
width: 400,
height: 145,
resizable: true,
closable: true,
modal: true,
autoScroll:true,
constrain: true,
items: [pnlCargarArchivo]
});

var btnMostrarSubirArchivo = new Ext.Action({
id: "btnMostrarSubirArchivo",
text: "Subir Archivo",
iconCls: "button_menu_ext ss_sprite ss_table_add",
handler: function() {
cargarArchivoWindow.show();
}
});

-- Codigo en php ()

<?php
var_dump($_FILES); //aca imprime un array vacio
//aqui deberia ir
//$_FILES["archivosName"]["name"];
//etc etc
?>

Hello. For rental housing, there are software solu[…]

Experience heightened pleasure with Cenforce 100 M[…]

Get an instant solution to move emails to MBOX for[…]

Most Demanding OST to PST Converter

The most demanding OST to PST Converter is TrijaT[…]