IIS WebForm无法在100KB上上传文件

发布于 2025-02-01 07:53:53 字数 944 浏览 4 评论 0原文

我有一个网络并使用IIS进行

设置 有两种情况

1。在IIS本地PC上 操作将成功地成功,文件放在临时文件夹中 在此处输入图像描述

2。在其他PC上 动作将失败,没有这样的选择,并且文件不是放置在临时文件夹中 在此处

我尝试了一些解决方案

  1. set web.config set
  2. maxrequestentity in web中的web.config set in web中。 config
  3. 设置IIS =&gt中的最大请求实体主体限制; ASP
  4. 设置加载用户配置文件= false
    资料来源:输入链接在这里

请有人帮助我解决这个问题 对不起,我的英语不好:(

I have a web and use IIS to setup

when I upload a pdf file which is over 100kb
there is two situations

1. On the IIS local PC
the action will success like this and the file is placed in the temp folder
enter image description here

2. On other PC
the action will fail and show nothing choose like this and the file is not placed in the temp folder
enter image description here

I have tried some solutions

  1. set maxAllowedContentLength in web.config
  2. set maxRequestEntityAllowed in web.config
    enter link description here
  3. set Maximum Request Entity Body Limit in IIS => ASP
  4. Set Load User Profile = False
    source : enter link description here

Plz someone help me to solve this problem
sorry for my bad English :(

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

猫瑾少女 2025-02-08 07:53:53

该解决方案是将IIS网站端口更改为80端口

The solution is changing IIS website port to 80 port

对岸观火 2025-02-08 07:53:53

使用以下代码。

<httpRuntime maxRequestLength="51200" executionTimeout="300"/>

Use the following code.

<httpRuntime maxRequestLength="51200" executionTimeout="300"/>
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文