How reproducible:

  • Go to the page to create a node with a Filefield field
  • Upload a file
  • Upload a second file
  • Check Delete on a file
  • Click Submit

The checked file doesn't get deleted.

Comments

Fixdit’s picture

Sounds similar to the issue here: http://drupal.org/node/389526

quicksketch’s picture

Yep, identical in fact. The other issue has been marked duplicate.

quicksketch’s picture

Anonymous’s picture

subscribing

edit: what is already working for me is the deletion of the files when deleting the corresponding node.

quicksketch’s picture

Status: Active » Closed (won't fix)

Closing Drupal 5 issues, this will likely never be corrected.

Russell McOrmond’s picture

Version: 5.x-2.3 » 6.x-3.9
Status: Closed (won't fix) » Needs work

I am running Drupal 6.20, and the (as of this moment latest) FileField and I observe the same issue. I've looked through multiple existing bug reports, many of which are marked as duplicates or were closed due to inactivity.

This is a current issue AFAIK.

I can also edit an existing page, mark a file to be deleted. After saving the page the file isn't listed in the node any more, but the file remains on disk. I have ran cron.php to see if that is the issue, but the file doesn't get deleted via the cron.

Is this an issue that can be looked at again? One of the advantages of having files attached to nodes is it allows our non-shell web team to manage the files themselves. If we need to clean out old files by hand it greatly reduces the utility of the FileField module (now in D7 core).

quicksketch’s picture

Version: 6.x-3.9 » 5.x-2.3
Status: Needs work » Closed (fixed)

Please file a new issue with full instructions to reproduce. I'm almost positive this is not an issue, as we have automated testing to ensure that files are deleted properly.

Russell McOrmond’s picture

Quick note in case anyone else finds this: The issue was that after deleting the file, it was still in a past revision. Unless the revision is deleted, the file isn't deleted from disk. This is as it should be, but wasn't obvious to me at first.