How can I get the file name from the UploadData Object?
- Code: Select all
function btn_select_file(event) {
plugins.file.showFileOpenDialog( 1, null, false, null, callback_select_file, 'Selecciona un fichero' );
}
function callback_select_file(file){
if (file) {
application.output(file);
plugins.file.streamFilesToServer( file, callback_stream_file );
}
}
The function output is [UploadData[name:file_data.bin,contenttype:application/octet-stream]]
Best regards. Roberto.