After changing or delete a file ($delete_original = TRUE), its status = 0 (in the table files), but the file is not deleted

Comments

Alan D.’s picture

Status: Active » Closed (works as designed)

CRON must be enabled!

All file deletion is done via system_cron(). Once flagged as temporary, the files will hang around for about 6 hours, after that time, the cron process deletes the file.

ipto’s picture

Thank you, I will try this solution

Alan D.’s picture

Category: bug » task
Status: Closed (works as designed) » Active

Thinking about this a bit more, I'll do a proper delete in the save handler, which will make the save logic a bit cleaner, especially when the new file is going to replace the existing file with the same name.

Cron still needs to be enabled to clean up any temp files though. Each time a file is uploaded via the AHAH request, a temp file is created. This is only cleaned up by cron, and this part will not change.

ipto’s picture

Wonderful, thank you. Creating issue, I mean those files that were once used (those that are no longer in the tmp directory).

Alan D.’s picture

Status: Active » Fixed

Changes committed, so another dev version will be out tonight/tomorrow with the changes.

ipto’s picture

I tested it today, is doing fine, thank you

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for two weeks with no activity.