Closed (outdated)
Project:
Drupal core
Version:
7.x-dev
Component:
image.module
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
10 Feb 2010 at 05:32 UTC
Updated:
19 Aug 2012 at 07:52 UTC
Jump to comment: Most recent, Most recent file

Comments
Comment #1
Steven Merrill commentedHere's the patch. It should fail four times, as noted above.
Comment #2
Steven Merrill commentedI also have some homework to do here, such as double-checking this against imagefield in D6 and checking if this is desired behavior or not.
Comment #4
tormu commentedAhem.. I just ran to this bug by adding an image field, uploading a picture for it and then deleting it - the file itself is not deleted from the server, and the usage count in the field_usage is not changed to 0 so I can't even delete it from admin/content/media.
Isn't this more of a critical than just normal?
If I upload a picture of John Doe's mom by accident and notice it right after, there's no way to remove it other than by going straight to SQL and file system?
Comment #5
-Mania- commentedI'm having issues with this as well. Makes me wonder why there's not many reports of this as it is a serious problem.
I have done a few manual tests and I think I've narrowed the problem to the following: Image fields that are set as a 'Required field' do not get deleted from the server. If I remove the 'Required field' setting the image files are removed successfully from the server. Can anyone else confirm this? I am using an image field in the user account settings if that makes a difference.