简体   繁体   English

与许多用户一起上传大文件的最佳方式是什么?

[英]What is the best way to upload large files with many users?

I have a website that I rent a private Server for it.我有一个网站,我为此租用了一个私人服务器。 It's a registration website in which users have to upload their photos or documents in order to register.这是一个注册网站,用户必须上传他们的照片或文件才能注册。

The problem is that in the same time 100 users are uploading 10MB photos on it and it causes some issues and finally none of them can upload their photo and register.问题是同时有 100 个用户在上面上传 10MB 的照片,这会导致一些问题,最后他们都不能上传他们的照片并注册。 I doubt that its depends on the server bandwidths and think that there should be another reason and a solution for this.我怀疑它取决于服务器带宽,并认为应该有另一个原因和解决方案。

Now I limit the upload size to 4MB (in web.config) and it seems to work without any problem while in the near future I have to unlimit the size because my website is going to pass Beta to final.现在我将上传大小限制为 4MB(在 web.config 中),它似乎可以正常工作,而在不久的将来我必须限制大小,因为我的网站将通过 Beta 到最终版本。

What's the best solution for this?什么是最好的解决方案?


Update: Actually the website provided for a festival where photographers have to upload their Original photos (which taken with DSLRs and most of them have 10MB photos)更新:实际上该网站提供了一个节日,摄影师必须上传他们的原始照片(使用数码单反相机拍摄,其中大多数有 10MB 的照片)

Also as I told I don't think that this is related to server because I don't have new users, but my current users ( or few new ones) are uploading their photos in ordr to submit their photos to festival此外,正如我所说,我认为这与服务器无关,因为我没有新用户,但我当前的用户(或少数新用户)正在上传他们的照片,以便将他们的照片提交给节日

Web farm would be last option for me Web 农场对我来说是最后的选择

Have a look at this nice article to understand the limitations with default asp.net file uploader.看看这篇不错的文章,了解默认 asp.net 文件上传器的限制。

Changing the maxRequestLength might not be sufficient but it may be required to increase the executionTimeout as well.更改maxRequestLength可能还不够,但可能还需要增加executionTimeout Try those options.尝试这些选项。

If you still fail, you might want to use a third party fileupload component.如果仍然失败,您可能需要使用第三方文件上传组件。

Telerik has a nice component - http://www.telerik.com/products/aspnet-ajax/upload.aspx Telerik 有一个不错的组件 - http://www.telerik.com/products/aspnet-ajax/upload.aspx

File uploader ( i've used sometime back and it was pretty good in the multi user enviornements) - http://www.mediachase.com/fuploader/overview.aspx文件上传器(我曾经使用过一段时间,它在多用户环境中非常好) - http://www.mediachase.com/fuploader/overview.aspx

Both the above are commercial versions and here is a free one from codeplex.以上都是商业版本,这里是 codeplex 的免费版本。 (havent tried this though) - http://neatupload.codeplex.com/ (虽然没有尝试过) - http://neatupload.codeplex.com/

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

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