I am using Servoy 5.2.4 on Windows 7. I am using showFileOpenDialog in the web client to select one or more files. After selecting the files on the client, I am unable to see each files path and absolutePath values. I have tested on Firefox 3.6 and Chrome 10.
Here is the code:
- Code: Select all
function selectFiles(event) {
plugins.file.showFileOpenDialog(0,null,true,null,inspectFiles,"Select Files for Upload")
}
function inspectFiles(files) {
if (files) {
for (i in files) {
var file = files[i];
application.output('name: ' + file.getName());
application.output('path: ' + file.getPath());
application.output('absolute path: ' + file.getAbsolutePath());
}
}
}
The output is:
- Code: Select all
name: IT Testing.doc
path:
absolute path:
Thanks,
Guerry