HTTP中的文件上传限制 [英] File upload limit in HTTP

查看:131
本文介绍了HTTP中的文件上传限制的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



我是这样做的,因为Flash是可以上传的文件的大小,理论上是可以上传的客户端使用浏览器的HTML文件上传的文件?有一个缺点,您可以上传的最大文件大小小于可用RAM的大小。我想知道是否有任何这样的浏览器限制...

解决方案

如果您的文件上传大于2Gb,您将遇到HTTP上传的问题。



可用的内存限制表明文件数据被全部吸收到内存中,这是非常低效的,特别是当文件大小增长。流对此更加有效。


Is there any limit theoretically on the size of file that can be uploaded by a client using the browser's file upload using HTML form?

I am posing this because Flash has a drawback where the largest file size you can upload is lesser than the size of available RAM. I am wondering if there is any such restrictions with the browsers...

解决方案

If your file upload is larger than 2Gb you will run into problems with HTTP uploads.

The "available RAM" limit suggests that the file data is being sucked all into memory, which is very inefficient especially when the file size grows. Streams are much more efficient for this.

这篇关于HTTP中的文件上传限制的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆