Project

General

Profile

Bug #8544

WFileUpload : uploaded signal never called

Added by jean sorrant about 1 month ago. Updated 29 days ago.

Status:
New
Priority:
Normal
Assignee:
-
Target version:
-
Start date:
05/19/2021
Due date:
% Done:

0%

Estimated time:

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

main.cpp (1.45 KB) main.cpp a simple exemple jean sorrant, 05/19/2021 03:40 PM
main.cpp (1.45 KB) main.cpp jean sorrant, 05/20/2021 09:39 AM
#1

Updated by jean sorrant 30 days 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 ..

#2

Updated by Korneel Dumon 29 days 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.

Also available in: Atom PDF