問題:
I have a form that excepts a file upload in ASP.NET.我有一個表單,除了 ASP.NET 中的文件上傳。 I need to increase the max upload size to above the 4 MB default.我需要將最大上傳大小增加到默認值 4 MB 以上。
I have found in certain places referencing the below code at msdn .我在某些地方發現在msdn 中引用了以下代碼。
[ConfigurationPropertyAttribute("maxRequestLength", DefaultValue = )]
None of the references actually describe how to use it, and I have tried several things with no success.沒有一個參考文獻真正描述瞭如何使用它,我嘗試了幾件事但沒有成功。 I only want to modify this attribute for certain pages that are asking for file upload.我只想爲某些要求文件上傳的頁面修改此屬性。
Is this the correct route to take?這是正確的路線嗎? And how do I use this?我該如何使用它?
解決方案:
參考一: https://stackoom.com/question/1D52參考二: How to increase the max upload file size in ASP.NET?