简体   繁体   English

处理大量文件上传-我应该知道哪些限制?

[英]Handling large amounts of file uploads - Any limitations I should know of?

I'm building a website that will involve a lot of uploaded files. 我正在建立一个网站,其中将包含许多上传的文件。 Hopefully, more than I intend for there to be. 希望超出我的预期。

I figured I'd have an uploaded files path and use a UUID as the filename. 我想我要上传一个文件路径,并使用一个UUID作为文件名。 I was curious if there are any limitations on this? 我很好奇这是否有任何限制? For instance, would storing thousands of files in the one folder on my server create problems? 例如,将数千个文件存储在服务器上的一个文件夹中会造成问题吗?

There are quite many issues that couldappear, from file system limitations to backup problems. 从文件系统限制到备份问题,可能会出现很多问题。

I suggest using the first X characters of tue UUIS as folder name - possibly multiple levels deep (first 4, second 43, third 4). 我建议使用星期二UUIS的前X个字符作为文件夹名称-可能多层深(前4个,后43个,后3个)。 This way you have one structure but can back up folders and move them to different servers if needed later (by using the folders as redirection points). 这样,您就可以采用一种结构,但是可以备份文件夹,并在以后需要时将它们移动到其他服务器(通过使用文件夹作为重定向点)。

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

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