Re: [Cppcms-users] CPPCMS and huge file uploads
Brought to you by:
artyom-beilis
From: Julian P. <ju...@wh...> - 2010-08-10 11:11:29
|
Am 10.08.2010 12:58, schrieb Artyom: >> >> Because of memory constraints, the uploads_path is set to another than >> the default location. Does this work in the current beta release >> (0.99.2.1) or do I have to use SVN? >> > > Just to make clear what version of CppCMS are you using? If you are using 0.99.1 > then upgrade to 0.99.2.1 where lots of file handing fixes where done, it it does > not work on 0.99.2.1 then I'll try to figure out what happens. > Currently, I'm using 0.99.2.1, now compiling latest SVN revision just to check whether it works there. In my code, I did not invoke the file widget's limits() method to set limits, now I did this and set them to 0 for min and -1 for max, and validate now returns true, but the file is zero bytes long (if I set min to 1, validate returns false again). Later in the code, I'm using save_to to store the uploaded file to another file on the same filesystem, this file is only zero bytes in size (checked with ls -l). I don't know whether cppcms respects my upload_files setting, because in /mnt/root.parent I don't see any temporary file, and under /tmp is not enough space to store the entire file. |