Discussions

Web tier: servlets, JSP, Web frameworks: File Uplodaing problem!!!!!!!!!

  1. File Uplodaing problem!!!!!!!!! (1 messages)

    Hi All,
    Can anybdy tell me how to upload a file from a JSP file to a different file server. The uploaded file needs to be saved to a particular file server rather than to the directory structure of the application server.

    How can I conenct to a File server and get the directory or if needed create a directory and put the uploaded file.

    any idea!!!!!!!!111

    PSR-LDN

    Threaded Messages (1)

  2. It depends...[ Go to top ]

    Hi there,

    It depends on how that other file server can be reached. The easy way I guess would be to map / mount a drive or partition of the remote server on the web server. That way the file can just be saved on what looks like a regular drive.

    Alternatively you can connect via FTP or HTTP to the remote server, and send the file over.