I am able to upload files to local machine using JSPSmar开发者_JAVA技巧tUpload, but I am not able to upload to a remote machine. It throws the following exception:
com.jspsmart.upload.SmartUploadException:File can't be saved(1120). java.io.FileNotFoundException:./Manfile.csv(No such file or directory)SBL
How can I solve it? I am using Tomcat.
You need to map/mount the remote disk on the local machine so that it's available the usual java.io.File
way. If mapping/mounting is not an option, then the only option left is setting up a FTP server on the remote machine and use a FTP client to send it. Apache Commons Net has a FTP client.
精彩评论