Scenario
Document upload to a contract in the Spider contract module does not work if the document is larger than 40 MB (as highlighted below)
![peter_link_9-1648123919186.png peter_link_9-1648123919186.png](https://community.flexera.com/t5/image/serverpage/image-id/8716i3114BED21B21CA85/image-size/large?v=v2&px=999)
There are two configuration files which determine the maximum allowed size, these are the Web.config and the httpRuntime.config files, as shown below (path may vary depending on your installation)
![peter_link_10-1648123919199.png peter_link_10-1648123919199.png](https://community.flexera.com/t5/image/serverpage/image-id/8717i53987B82A0E84F9C/image-size/large?v=v2&px=999)
The setting for maxRequestLength in the httpRuntime.config file (displayed below)
will result in the maximum of 40 MB. Entries are in Kilobyte, 40 MB = 40960 KB
![peter_link_11-1648123919205.png peter_link_11-1648123919205.png](https://community.flexera.com/t5/image/serverpage/image-id/8715iF4AB59B452ED8B16/image-size/medium?v=v2&px=400)
The web.config file has not been changed at this moment in time.
Solution
How to increase the allowed document upload size in Spider Contract
1) increase maxRequestLength in the httpRuntime.config file, for example to 80MB
![peter_link_12-1648123919220.png peter_link_12-1648123919220.png](https://community.flexera.com/t5/image/serverpage/image-id/8719iFAABE465CC84EE0D/image-size/medium?v=v2&px=400)
2) in the web.config file underneath the Tag <system. web> add the following line
<httpRuntime maxRequestLength="102400" executionTimeout="3600" />
This allows up to 100 MB
![peter_link_13-1648123919272.png peter_link_13-1648123919272.png](https://community.flexera.com/t5/image/serverpage/image-id/8720iC9CAB98DBAD01E4F/image-size/large?v=v2&px=999)
3) IIS reset (with administrative command prompt or in IIS console)
Result
![peter_link_14-1648123919286.png peter_link_14-1648123919286.png](https://community.flexera.com/t5/image/serverpage/image-id/8718iA2CB7C907A4017A6/image-size/large?v=v2&px=999)