Hey Richard,

2008/12/10 Richard Ulrich <[EMAIL PROTECTED]>:
> I want to upload a 2MB file using a Wt::WFileUpload.
> As I understand the documentation, it should be possible by setting the
> max-request-size in /etc/wt/wt_config.xml.
> I set the value to 5120 which should be enough I think.
> Other values of that config file are read and used correctly.
> But I always get the fileTooLarge signal, and the value
> Wt::WApplication::instance()->maximumRequestSize() is the default 128kB.

I just tried it, and it does work for me. To check that the value is
read from the config file, you could put in some characters which
should result in an error at start-up time.

> I wanted to see if it works correctly on Windows, but there I don't know
> where to put the wt_config.xml file.

You can specify the location of the wt_config.xml using the command
line argument '--config', see the help page ('--help'), since on
Windows there is not really a reasonable default.

If all still fails, I would be interested in hearing if you can narrow
down the bug: the 'max-request-size' field is read in
web/Configuration.C line 258.

Regards,
koen

------------------------------------------------------------------------------
SF.Net email is Sponsored by MIX09, March 18-20, 2009 in Las Vegas, Nevada.
The future of the web can't happen without you.  Join us at MIX09 to help
pave the way to the Next Web now. Learn more and register at
http://ad.doubleclick.net/clk;208669438;13503038;i?http://2009.visitmix.com/
_______________________________________________
witty-interest mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/witty-interest

Reply via email to