WFileUpload::fileTooLarge() signals 0 instead of a meaningful lavue
Steps to reproduce:
- Download the attached main.cpp
- Run g main.cpp -lwt -lwthttp -o main
- Run ./main ---docroot=/usr/share/wt/ ---http-address 0.0.0.0 ---http-port 8080
- Try to upload a too-big file
Result: "File too large! size = 0" is shown in the Wt log.
You may have to replace the "/usr/share/wt/" above with a directory that contains the Wt's resources/ directory.
This happens on a 64 bit PC running Linux (openSUSE 11.4), with:
- gcc 4.5.1
- Wt 3.1.8
- boost-devel 1.44.0
I can provide other information if needed, this is 100% reproducible on my PC.