I tried it before posting, and this was the output
Failed to execute the method of context batch_clave and name callback_select_file on the solution pgp
Java class “[Lcom.servoy.extensions.plugins.file.JSFile;” has no public instance field or method named “getName”. (C:\Documents and Settings\Administrador\servoy_workspace.5\pgp\forms\batch_clave.js#42)
at C:\Documents and Settings\Administrador\servoy_workspace.5\pgp\forms\batch_clave.js:42 (callback_select_file)
If I try to convert it to a JSFile Object
function callback_select_file(file){
if (file) {
var obj_file = plugins.file.convertToJSFile(file);
application.output("File Name : " + obj_file.getName());
plugins.file.streamFilesToServer( file, callback_stream_file );
}
}
The output is
File Name : [Lcom.servoy.extensions.plugins.file.JSFile;@8e065
OK. Don’t know why exactly but I will have a look.
Still, I thought you were going to use JSFile.writeXXX() in the web client?
Because for smart client, you should receive a proper JSFile directly from the call to plugins.file.showFileOpenDialog() (no need for a callback).