Larson Kao
Larson Kao

Reputation: 1

IIS webform can not upload file over 100kb

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 :(

Upvotes: 0

Views: 596

Answers (2)

Jyotirmaya Das
Jyotirmaya Das

Reputation: 41

Use the following code.

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

Upvotes: 0

Larson Kao
Larson Kao

Reputation: 1

The solution is changing IIS website port to 80 port

Upvotes: 0

Related Questions