Skip to content

Commit 339369b

Browse files
Merge pull request #917 from dynamsoft-docs/patch
add max file size in HTTP-process-error.md
2 parents acbd37f + 0aac5f4 commit 339369b

File tree

1 file changed

+21
-3
lines changed

1 file changed

+21
-3
lines changed

_articles/faq/HTTP-process-error.md

Lines changed: 21 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ keywords: Dynamic Web TWAIN, Error Troubleshooting, HTTP process
77
breadcrumbText: HTTP process error
88
description: HTTP process error
99
date: 2021-12-03 23:26:46 +0800
10-
last_modified: 2024-09-19 08:47:35 +0800
10+
last_modified: 2025-08-14 14:09:35 +0800
1111
---
1212

1313
# Error Troubleshooting
@@ -78,8 +78,26 @@ When attempting to upload images using any of the HTTPUpload\*\*\* methods the u
7878
</configuration>
7979
```
8080

81-
If you are using `PHP` , you can change the value in the following line in the `php.ini` file:
81+
If you are using `PHP` , you can change the value in the following lines in the `php.ini` file and `web.config` file:
82+
83+
- **php.ini**
8284

8385
```shell
84-
upload_max_filesize = 2M
86+
file_uploads = On ; Enable file uploads
87+
upload_max_filesize = 50M ; Max single file size for uploads
88+
post_max_size = 60M ; Max size for POST data (includes all fields and files)
89+
max_execution_time = 300 ; Max script execution time (in seconds)
90+
```
91+
92+
- **web.config**
93+
94+
```xml
95+
<system.webServer>
96+
<security>
97+
<requestFiltering>
98+
<requestLimits maxAllowedContentLength="52428800" /><!-- 50MB -->
99+
</requestFiltering>
100+
</security>
101+
</system.webServer>
85102
```
103+

0 commit comments

Comments
 (0)