C# 无法将文件上载到Godaddy服务器
当我尝试将图像上传到Godaddy时,我只能上传较小尺寸的图像 我已经在我的网络配置中使用了这个,但是我仍然无法上传更大的文件C# 无法将文件上载到Godaddy服务器,c#,asp.net,shared-hosting,C#,Asp.net,Shared Hosting,当我尝试将图像上传到Godaddy时,我只能上传较小尺寸的图像 我已经在我的网络配置中使用了这个,但是我仍然无法上传更大的文件 <security> <requestFiltering> <requestLimits maxAllowedContentLength="1073741824" /> </requestFiltering> </security> 在web配置中,您需要在S
<security>
<requestFiltering>
<requestLimits maxAllowedContentLength="1073741824" />
</requestFiltering>
</security>
在web配置中,您需要在
System.web
中添加maxRequestLength
,以及上述配置
例:
您遇到的错误是什么。@Webruster类似于MaxRequest
length-reated-error的内容我可以在本地主机上上传,但在真实站点上无法上传。。你能帮我一下吗?当然可以。我会补充并问你。请回答这个问题
<httpRuntime maxRequestLength="600000" />