Since you posted this to the "Servlets" forum, I'm assuming that by "program" you mean a web application. In that case, no, this is not possible. And that's a good thing, too - think of the security implications if it were possible to upload user files automatically to a remote site.
Using the manual file selection via the "Browse..." button is the only way, and since that doesn't allow to select directories, it is not possible to upload a complete directory.
Yes, I am doing a web application. The sequence of my program is this, I have an applet that uploads files from client to server's file system. Now, I will validate/parse the contents of the said folder after which I will transfer the valid files to a specified folder for it to be uploaded to the database. What I am asking is that is it possible that I will upload the valid files one by one from the directory without using the "browse" button? I don't want to upload the whole directory.
Yes, if you are using a signed applet then it can do anything with the client's files that it likes. Assuming of course that the client accepts the notification the first time they download the applet.
Joined: Aug 17, 2007
Thanks for your reply Paul!
So I guess, the final answer to the question "Can I upload the files FROM a directory to the database?" is: YES?