I have a mechanism to upload a file to the remote disk from the JSP page. But now the issue is that User is not supposed to access the remote disk as it is supposed to be a restricted access remote disk.

Now I was wondering on how to upload a file in a secure way in which user will not have to directly upload the file to remote disk but the web server. So user will upload the file to web server and then web server which is having the rights to access the remote disk, will finally upload the file to the disk.

Any suggestions would be appreciated.

Thanks

Use HTTP POST to get your file to the Web Server and the receiving servlet can then forward it to the next modules for the necessary processing.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.