Passing local files values to JFileUpload to Upload.

Upload core product.
Post Reply
VeVas
Posts: 1
Joined: Wed Nov 23, 2011 12:33 pm

Passing local files values to JFileUpload to Upload.

Post 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?

User avatar
support
Posts: 1503
Joined: Sun Jan 27, 2008 6:19 pm

Re: Passing local files values to JFileUpload to Upload.

Post 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.

vlad
Posts: 82
Joined: Sun Jan 04, 2009 6:38 pm

Re: Passing local files values to JFileUpload to Upload.

Post 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.

User avatar
support
Posts: 1503
Joined: Sun Jan 27, 2008 6:19 pm

Re: Passing local files values to JFileUpload to Upload.

Post by support »

For instance a browseFiles() JavaScript function?

Post Reply