I have recently tried to use imagefiled to attache images to a custom content type. I created a cck field "my_photo" for the specified content type, and set the file path to "image_field_images" for this cck filed. The upload, works fine, but when i try to edit, and delete an image attached to an existing node, it does not show on the node view any more, but the image is not removed/deleted from sites/default/files/image_field_images. Is this a normal behavior, or a bug?, because i think the image should be removed from the specified directory once it's deleted.

The imagefiled and some other modules and settings and info is provided below;

imagefiled 6.x-3.x-dev
cck 6.x-2.1
Permissions for files and tmp directory is 777
download method= public

Thanks for any assistance in advance.

Comments

jbrauer’s picture

Title: imagefield issue » Deleting image from field does not remove file

Updating title to be more descriptive

Also there are two other issues that relate to images that should be deleted from the file space not being deleted:

http://drupal.org/node/327022 -- Images uploaded but node not saved are left on disk
http://drupal.org/node/219508 -- When replacing an image with a new image the old one is left on disk

One final note in testing it is the case that the file is not removed if you remove the image from the node. It is also not removed if you delete the node.

drewish’s picture

drewish’s picture

Status: Active » Closed (duplicate)