Bug #1488
closedWFileUpload error
0%
Description
Hi,
I used WFileUpload with older releases of Wt (eg. 3.0.x and 3.1.x) and it was working perfectly. But now I tried 3.2.1, 3.2.3-rc1 and the git version and they are all having a strange problem.
I have 20480 in my wt_config.xml,
and client_max_body_size 100M; in nginx.conf.
When I upload a file less than 128K I got this log from my app:
[2012-Oct-19 19:51:51.421025] 79533 [/samsungdforum.ir/www/root.fcgi 90qdmmUlMZCguQq0] [info] "WebRequest: took 0.903ms"
[2012-Oct-19 19:51:51.526696] 79533 - [info] "CgiParser: end of multi-part data"
[2012-Oct-19 19:51:51.526976] 79533 [/samsungdforum.ir/www/root.fcgi 90qdmmUlMZCguQq0] [info] "WebRequest: took 101.07ms"
[2012-Oct-19 19:51:51.554017] 79532 - [error] "wtfcgi: error reading from web server"
[2012-Oct-19 19:51:51.607976] 79533 [/samsungdforum.ir/www/root.fcgi 90qdmmUlMZCguQq0] [info] "WebRequest: took 182.625ms"
[2012-Oct-19 19:51:51.610419] 79533 [/samsungdforum.ir/www/root.fcgi 90qdmmUlMZCguQq0] [info] "WebRequest: took 2.685ms"
I have access to the file on server side and the file content is just fine (even thought there is an error in the log).
When I upload a file larger than 128K my app prints out the file content to the log output, and then an error like the above one and uploaded() is not emitted (looks like it got canceled).
[FILE CONTENT HERE]
[2012-Oct-19 19:52:38.975738] 79532 - [error] "wtfcgi: error reading from web server"
[2012-Oct-19 19:52:39.030842] 79533 [/samsungdforum.ir/www/root.fcgi 90qdmmUlMZCguQq0] [info] "WebRequest: took 489.009ms"
[2012-Oct-19 19:52:39.031380] 79533 [/samsungdforum.ir/www/root.fcgi 90qdmmUlMZCguQq0] [info] "WebRequest: took 0.76ms"
If the file is larger, lets say 4-5 MB:
Chromium:
[FILE CONTENT HERE]
---------WebKitFormBoundarytqO5yLPQ8816uuNb---
[2012-Oct-19 20:13:51.471277] 79533 [/samsungdforum.ir/www/root.fcgi HMTDm7gwC0kwVmIP] [info] "WebRequest: took 15760.1ms"
[2012-Oct-19 20:13:51.491825] 79532 - [error] "wtfcgi: error reading from web server"
[2012-Oct-19 20:13:51.547097] 79533 [/samsungdforum.ir/www/root.fcgi HMTDm7gwC0kwVmIP] [info] "WebRequest: took 16389.9ms"
[2012-Oct-19 20:13:51.547403] 79533 [/samsungdforum.ir/www/root.fcgi HMTDm7gwC0kwVmIP] [info] "WebRequest: took 0.462ms"
Firefox:
[FILE CONTENT HERE]
--------------------------------------------17205573312277156691194368507---
[2012-Oct-19 20:15:40.261953] 79533 [/samsungdforum.ir/www/root.fcgi 8XaFLlZWowafm9sG] [info] "WebRequest: took 14774.4ms"
[2012-Oct-19 20:15:40.275596] 79532 - [error] "wtfcgi: error reading from web server"
[2012-Oct-19 20:15:40.327589] 79533 [/samsungdforum.ir/www/root.fcgi 8XaFLlZWowafm9sG] [info] "WebRequest: took 15502.1ms"
[2012-Oct-19 20:15:40.327880] 79533 [/samsungdforum.ir/www/root.fcgi 8XaFLlZWowafm9sG] [info] "WebRequest: took 0.448ms"
[2012-Oct-19 20:16:25.394954] 79533 [/samsungdforum.ir/www/root.fcgi HMTDm7gwC0kwVmIP] [info] "WebRequest: took 0.328ms"
Opera:
[FILE CONTENT HERE]
------------------gu1vR4rOoeI4eo0Gp4Au6G---
[2012-Oct-19 20:18:03.907876] 79533 [/samsungdforum.ir/www/root.fcgi Roqxc78252SgtTvp] [info] "WebRequest: took 14937.1ms"
[2012-Oct-19 20:18:03.968162] 79532 - [error] "wtfcgi: error reading from web server"
[2012-Oct-19 20:18:04.048842] 79533 [/samsungdforum.ir/www/root.fcgi Roqxc78252SgtTvp] [info] "WebRequest: took 15471.7ms"
[2012-Oct-19 20:18:04.049153] 79533 [/samsungdforum.ir/www/root.fcgi Roqxc78252SgtTvp] [info] "WebRequest: took 0.5ms"
Updated by Koen Deforche over 12 years ago
- Status changed from Feedback to Resolved
- Assignee set to Koen Deforche
- Target version set to 3.2.3