简体   繁体   English

存储动态上传文件的最佳做法是什么(上传服务器文件夹或子文件夹的位置)?

[英]What is best practices to store dynamically uploaded files(Where to upload server folder or sub folder)?

I have a web system users will upload files(1 GB Max).我有一个网络系统用户将上传文件(最大 1 GB)。 Right now i have hosted my web site in the root directory.现在我已经在根目录中托管了我的网站。 So is it good to store uploaded files into the hosted web server root folder/Uploads ?.(Will it slow the web site to load).那么将上传的文件存储到托管的 Web 服务器根文件夹/上传文件中是否好?(它会减慢网站加载速度)。 What is the best practice to store dynamically uploaded files?存储动态上传的文件的最佳做法是什么?

I suggest you to use Azure Blob Storage instead.我建议您改用Azure Blob 存储

  • If you store your files with the server, it will continuously throw errors in case there is no more free disk space available.如果您将文件存储在服务器上,则在没有更多可用磁盘空间的情况下,它会不断抛出错误。
  • When you want to move the application into another server, all your files must be also moved.当您想将应用程序移动到另一台服务器时,您的所有文件也必须移动。
  • You will stress the server every time a user wants to download some files每次用户想要下载一些文件时,您都会对服务器施加压力
  • Blob Storage allows replication and high availability. Blob 存储允许复制和高可用性。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM