Closed (fixed)
Project:
ImageField
Version:
5.x-2.x-dev
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
16 Sep 2007 at 19:10 UTC
Updated:
12 May 2008 at 19:16 UTC
Jump to comment: Most recent file
Comments
Comment #1
auroqn commentedYeah, there should two radio buttons: first for removing file from db only and the second one for removing the file from disk and db.
Comment #2
quicksketchThe bug here isn't with imagefield deleting the images, which is the correct behavior. Node_clone should be creating a duplicate image for the cloned node, not sharing the same one. The same problem exists for upload module, where the shared files will not be duplicated.
Comment #3
g10 commenteddoes the module do a check if the image is still in use by another node before deleting? (and if still in use, then do not remove it)
I think this should be the desired behaviour, as with i18n / translations it is handy to not have to re-upload the images, same file can be shared among different nodes… but not deleted if one of the nodes changes a file
it is better to encapsulate this in the imagefield module, other modules should not be the one to decide whether to duplicate files…
patch for this behaviour is included
Comment #4
g10 commented(status update)
Comment #5
dopry commentedsorry Drupal 5 does not support sharing files between nodes. This is a not a feature of imagefield...
The Drupal 6 port will include an implementations of hook_file with reference counting deletes amongst CCK fields, so files will be shareable with imagefield and filefield.