Bug #8544
openWFileUpload : uploaded signal never called
0%
Description
Hello,
I had to replace line WFileUpload.C:49
Utils::find(request.uploadedFiles(), "data", files);
by
Utils::find(request.uploadedFiles(), "\"data\"", files);
to make it works
version tag 4.5.0
Files
Updated by jean sorrant over 2 years ago
Hello,
I had to replace line WFileUpload.C:49
Utils::find(request.uploadedFiles(), "data", files);
by
Utils::find(request.uploadedFiles(), "\"data\"", files);
to make it works
version tag 4.5.0
build myself
debian 8
gcc (Debian 4.9.2-10+deb8u2) 4.9.2
cmake -DBUILD_EXAMPLES=OFF -DENABLE_HARU=ON -DENABLE_LIBWTDBO=OFF -DSHARED_LIBS=OFF -DCMAKE_BUILD_TYPE=Debug -DDEBUG=ON ..
Updated by Korneel Dumon over 2 years ago
Hi Jean,
I actually can't reproduce this and I'm not sure what would cause the difference. Your system seems quite old, perhaps that has something to do with it. Other than that I don't really know.
Apart from that, your code mentions fu->setFileTextSize(50); // Set the maximum file size to 50 kB.
. This method just determines the size of the input-field. To configure max upload size, check out <max-request-size>
in wt_config.xml
. The default is 128kB, so I don't think that's what is causing your problem.