I got this code for my valum upload plugin this plugin, I want to get the filename to use it in a $.post method, but I dont know how, any advises?, I need the filename outside of the qq.FileUploader plugin
var uploader = new qq.FileUploader({
element: document.getElementById('demo'),
listElement: document.getElementById('separate-list'),
action: '../../correo/controller/controllerSubirArchivos.php',
// name: 'qqfile',
debug:false,
allowedExtensions:['jpg', 'jpeg', 'png', 'gif', ],
sizeLimit: 10000000, //10MB maximo
onSubmit: function(id, fileName){
//alert (fileName);
}
});
I am searching but I dont find how? any help very appreciated
I’m not really sure I understand what you mean. You can store the filename in a global variable for example and use it when you need it: