我已经阅读了几种将文件上传到服务器的方法。
multipart/formdata
( How does HTTP file upload work? ) ( How do I upload a file with metadata using a REST web service? )
还有其他选择吗?我正在做的项目需要这样的功能。而且我要上传的文件可以达到几千兆。我想对不同的方法进行全面的评估。
加 1
Thanks for so many responses. I am occupied for some other things these days and can't get back to this question until I see the SO notifications. I'd like to apologize for adding details so late as the bounty is about to expire.
在我的场景中,有 1
web server
, 一个 file server
和许多 agents
.整个图片看起来像这样:还有一些编码上下文:
最佳答案
其他上传文件到服务器的方法(总结):
最后,下面的链接展示了一个经典的HTTP上传的实现方法平均售价 :
https://support.microsoft.com/en-us/kb/299692
这是一些技术或方法的总结,但有很多解决方案。
关于file-upload - 上传文件的不同方法?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/31238641/