Page 1 of 1

Passing local files values to JFileUpload to Upload.

Posted: Wed Nov 23, 2011 12:42 pm
by VeVas
Hi!

Is it possible to pass local filepaths to JFileUpload and then make JFileUpload handle the uploading?

i.e. I have a HTML-from with a normal fileselector/input, and when the user submits this form it passes the filenames to JFileUpload, and it starts uploading?

Re: Passing local files values to JFileUpload to Upload.

Posted: Sun Nov 27, 2011 12:35 pm
by support
No, JFileUpload does not allow upload starting from JavaScript because it could be a security hole.
Someone could hide applet and steal files on en-user computer.
We can provide such feature but as a customization only.

Re: Passing local files values to JFileUpload to Upload.

Posted: Tue Nov 29, 2011 12:16 am
by vlad
But is it possible to trigger the file selection dialog via JavaScript? That would be very nice. It would allow us to visually integrate the applet better in the surrounding user interface.

Re: Passing local files values to JFileUpload to Upload.

Posted: Wed Nov 30, 2011 5:59 pm
by support
For instance a browseFiles() JavaScript function?