On 1/22/06, John T. [email protected] wrote:
Well, I know why the tmp files are building up - they are the ones that
are not removed when the other error I posted about happens. It seems
file_column is moving the file into it’s proper place, or trying to, and
when the error occurs (‘same file’ - having to do with the case of the
file), the file in the tmp directory is not removed.
basically, the tmp files are removed once the model is saved without
errors. Before this, file_column can’t remove them, because they might
be needed for a form that is redisplayed because of validation errors.
The idea is to use a cron-job that deletes all files in the tmp
directory that are older than 24 hours or so. Right now, you have to
write this yourself (should be trivial), but patches are welcome…