Allowing a script to get a full local file path?
Posted: Mon Nov 09, 2015 9:43 pm
In a variation to the Local Links theme:
Is there any way NoScript could help to allow a script to get a full local file path?
We would like to write an internal web page on our local intranet server as a database frontend. It should include a button opening a file browser so one can choose a local file (in fact on a Samba share on that same intranet server), returning its full path like S:/path/to/doc.pdf (not the file or its contents itself). This path is to be entered into the database and then to be displayed in the web page as a clickable local link to that file.
The linking already works thanks to NoScript's LocalLink feature, but I can't see an easy way to get the path through the browser.
IE can allow returning the path for its trusted zone, but FF hasn't that zone concept and we don't use IE.
I am aware that FF intentionally hides the path for good security reasons, returning only the filename — https://bugzilla.mozilla.org/show_bug.cgi?id=143220. Signed scripts once could do that, but were difficult and are deprecated https://developer.mozilla.org/en-US/doc ... gning_Code. The only way seems to be using/writing an extension… NoScript? Or is there already such an extension I didn't find?
Thanks, Hans
Is there any way NoScript could help to allow a script to get a full local file path?
We would like to write an internal web page on our local intranet server as a database frontend. It should include a button opening a file browser so one can choose a local file (in fact on a Samba share on that same intranet server), returning its full path like S:/path/to/doc.pdf (not the file or its contents itself). This path is to be entered into the database and then to be displayed in the web page as a clickable local link to that file.
The linking already works thanks to NoScript's LocalLink feature, but I can't see an easy way to get the path through the browser.
IE can allow returning the path for its trusted zone, but FF hasn't that zone concept and we don't use IE.
I am aware that FF intentionally hides the path for good security reasons, returning only the filename — https://bugzilla.mozilla.org/show_bug.cgi?id=143220. Signed scripts once could do that, but were difficult and are deprecated https://developer.mozilla.org/en-US/doc ... gning_Code. The only way seems to be using/writing an extension… NoScript? Or is there already such an extension I didn't find?
Thanks, Hans