On Wed, Dec 17, 2008 at 8:08 PM, Richard Ulrich <[email protected]> wrote: > Hi Koen, > > so I updated to 2.2.2 on both ubuntu and windows. On windows I > downloaded the file from your website and on linux I got the deb from > Pau's PPA. > > On windows it works as expected. By specifying the --config option. > > On ubuntu I interpreted the behavior a bit differently. > With the whttp if I specify the --config option it works as expected. > But without, it doesn't get the config from the default location. > Also with the fcgi it doesn't use the configuration file from the > default location. I have yet to try setting the environment variable.
That might be a bug in the Debian packaging. Do you have a simple test program I could try? > > Rgds > Richard > > > > On Thu, 2008-12-11 at 08:28 +0100, Koen Deforche wrote: >> 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 > -- Pau Garcia i Quiles http://www.elpauer.org (Due to my workload, I may need 10 days to answer) ------------------------------------------------------------------------------ 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
