开发者

How to upload to remote machine with JSPSmartUpload?

开发者 https://www.devze.com 2023-04-06 16:51 出处:网络
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:

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.

0

精彩评论

暂无评论...
验证码 换一张
取 消