如何上传超过1mb的文件 [英] How Can I Upload a file more than 1mb
本文介绍了如何上传超过1mb的文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
如何上传超过1mb的文件
How Can I Upload a file more than 1mb
推荐答案
奇怪 - 正常默认最大值为5MB,因此可能已在web.config中更改。
查看web.config,看看是否有httpRunTime部分。如果是这样,maxRequestLength属性的值控制最大上载大小,以KB为单位。
Strange - the normal default maximum is 5MB, so it may have been changed in your web.config.
Have a look at web.config, and see if there is an httpRunTime section. If so, the values for the maxRequestLength property controls the max upload size, in KB.
<httpRuntime maxRequestLength="25096""></httpRuntime>
将其设置为25Mb。
如果没有设置,或者这没有帮助,请联系您的托管服务,他们可能需要在IIS中更改您的值。
Sets it to 25Mb.
If there isn't a setting, or this doesn't help, contact your hosting service, they may need to change the value for you in IIS.
这篇关于如何上传超过1mb的文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文