I use HTMLForm to handle multipart file upload.
Code: Select all
void TransmitFileHandler::handleRequest(Poco::Net::HTTPServerRequest & request, Poco::Net::HTTPServerResponse& response)
FilePartHandler fileHandler; //my handler
HTMLForm form(request, request.stream(), fileHandler);
In version 1.4.3 you guys introduced a field limit of 100 for security reason, and now my code is breaking for cases with 100 files and form fields submitted. The problem is I can't call setFieldLimit() because the HTMLForm constructor calls load() where field limit exception is thrown from. So by the time HTMLForm object is constructed it has already used its field limit of 100.
Am I using HTMLForm wrong? How can I fix my code to work with new 1.4.3 POCO? Do you plan to patch HTMLForm to specify field limit in the constructor?