Access input type = "file" full path from Java applet

You can access the HTML DOM from the applet using the netscape.javascript JSObject API. However, if I request the value input type = "file", in some browsers (Opera) I get the full path to the selected file, but in other browsers (Firefox, Chrome) just the file name without a path.

Is it possible, having HTML input type = "file", to find out the full path to the file selected in it from the Java applet?

The reason I'm worried: signed applets can access the file system, and browser file selectors are much better than Java swing.

+3
source share
1 answer

. HTML/JS ( ). input type="file" , . , Opera , , MSIE , , .

, ? Swing JFileChooser, , , HTML input type="file".

+2

Source: https://habr.com/ru/post/1730380/


All Articles