0

I was reading spring Uploading Files Getting Started Guides.In this guide the file was saved in local file system using nio.

I wonder what should I do if I want to save files to a file server?I found sftp and nfs,is nfs better when the file server is in the same lan with the tomcat server?Is there any ohter ways?

冯克勤
  • 37
  • 5
  • There are many libraries which you can use . check this https://stackoverflow.com/questions/6527664/how-do-you-upload-a-file-to-an-ftp-server. Also check apache camel – pvpkiran Jan 03 '19 at 09:52
  • @pvpkiran I checked out the question you suggested,all the answers were talking about FTP,so I guess your opinion is FTP? – 冯克勤 Jan 05 '19 at 03:44

1 Answers1

0

After 3 months with no answers, I guess there is no "standard" way to do it.But as the question that @pvpkiran recommended in the comments,I also guess that FTP or SFTP is a some sort of common way to do it.

冯克勤
  • 37
  • 5