[development] file handling, open_basedir for 4.7?

Gabor Hojtsy gabor at hojtsy.hu
Sat Feb 25 09:56:11 UTC 2006


Darrel O'Pry wrote:
> I've made some more headway, but ran into one of those collateral
> issues....
> 
> php has its own garbage collection for upload_tmp_dir....
> Since my solution requires moving a file out of php's upload_tmp_dir to 
> Drupal's tmp dir, functions that quit or don't complete leave a hanging
> file in drupal's tmp dir... 
> 
> Is system_cron a good place for this garbage collection?

IMHO functions which can detect malfunctions should remove the uploaded
files (ie. my patch included a file remove action for the locale upload,
since the file is not needed after the import is done). Unexpected halts
will leave files there, for sure... Hm...

Goba


More information about the development mailing list