Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
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
Comment #1
Fixdit CreditAttribution: Fixdit commentedSounds similar to the issue here: http://drupal.org/node/389526
Comment #2
quicksketchYep, identical in fact. The other issue has been marked duplicate.
Comment #3
quicksketchMarked #362620: cck table not updated on delete as duplicate.
Comment #4
Anonymous (not verified) CreditAttribution: Anonymous commentedsubscribing
edit: what is already working for me is the deletion of the files when deleting the corresponding node.
Comment #5
quicksketchClosing Drupal 5 issues, this will likely never be corrected.
Comment #6
Russell McOrmond CreditAttribution: Russell McOrmond commentedI 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).
Comment #7
quicksketchPlease 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.
Comment #8
Russell McOrmond CreditAttribution: Russell McOrmond commentedQuick 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.