I want to attach the files that are stored on my local drive to the document from the web. I have a button on form which when clicked should attach the file to the document. I dont want to file upload control adn then select the file as I have more than 1 file to be attached. I am getting the path of the file in computed for display field(s) and then I want to use this path to attach all the files by clicking the button once…I tried setting the value for the File upload ctrl…but due to some security i am unable to set the value…can you please help.
I believe that the only way to do what you want is to develop some Java application to use for the file upload functionality.
The reason that you can’t set the value of the file upload control through javascript is that it would make it possible for anyone to put up a web page and harvest all files on the visitor’s computer. This would not be good. Of course, it makes it harder for us web developers, but it’s the price we have to pay for the security.