WEBAPI 设置上传文件大小
程序员文章站
2023-10-16 10:22:56
参考资料:https://*.com/questions/33399267/cors-error-when-uploading-larger-files https://blog.csdn.net/i2blue/article/details/83892719 单位是 kb ......
参考资料:
单位是 kb
<configuration> <system.web> <httpruntime targetframework="4.6.1" maxrequestlength="20480000" /> <customerrors mode="off" /> </system.web> </configuration>
单位是 byte
<configuration> <security> <requestfiltering > <requestlimits maxallowedcontentlength="4294967295" ></requestlimits> </requestfiltering> </security> </configuration>