Can a web script access and load a file on a network path?
The scenario is as follows: I have an application that wants to store a file in Alfresco. The file is located on a network share that is accessible to both the calling application and to the Alfresco server. Rather than the calling app loading the file and posting the contents of the file in the http post it would instead just pass the path to the file (\\server\share\folder\filename.ext") and the webscript would load the file and save it in the Alfresco repo.
I don't see why not. I'd recommend using Java-backed web script as opposed to JavaScript.
Your code will run within the context of the Tomcat server, so you might have to setup your security properly to access files on shares. I'd think you'll have to look into starting Tomcat with a custom security policy that opens up appropriate security options.