ASP.NET(上传按钮) [英] ASP.NET (UPLOAD BUTTON)

查看:87
本文介绍了ASP.NET(上传按钮)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

使用c#.net并使用上载按钮时,默认情况下,上载按钮仅上载大小为4MB的文件.我要上传文件,图片大小为30到50 MB.怎么做.文件大小的限制是什么,可以上传.

Using c#.net, while using upload button,By default upload button uploads only file of size 4MB. I want to upload file,picture of size 30 to 50 MB. How can is do it.What is the limitation of file size,one can upload.

推荐答案

您可以通过设置文件的maxRequestLength属性来允许上传较大的文件. httpRuntime元素.若要增加整个应用程序的最大允许文件大小,请在Web.config文件中设置maxRequestLength属性.要增加指定页面的最大允许文件大小,请在Web.config中的location元素内设置maxRequestLength属性.
You can allow larger files to be uploaded by setting the maxRequestLength attribute of the httpRuntime element. To increase the maximum allowable file size for the entire application, set the maxRequestLength attribute in the Web.config file. To increase the maximum allowable file size for a specified page, set the maxRequestLength attribute inside the location element in Web.config.


这篇关于ASP.NET(上传按钮)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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