Search code examples
springfile-uploaduploadfileserver

best way to upload/download to a file server using spring?


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?


Solution

  • 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.