hi i am using the following modules:
- FileField
- ImageField
- IMCE
- FileField Sources
all in the current stable version on D6.
if i upload an image using imce and pick it afterwards user FileField Sources, the file is reference by FileField. But if i remove it again the reference is not deleted as i can see when i call
module_invoke_all('file_references', $file);
this causes the issue that i cannot delete these files through imce anymore. it gives me the notice that the file is used by another module.
ideas?
thanks
lukas
Comments
Comment #1
quicksketchIMCE now implements hook_file_references() also, so the only way you can delete that image is to delete it through IMCE.
Comment #2
quicksketchComment #3
luksakon line 405 in imce.page.inc you do the following:
$refs contains an array:
or something similar.
this shouldnt be the case since i removed the file from all nodes before.
thanks
lukas
Comment #4
quicksketchDid you remove the file from all the *revisions* of all the nodes? Since a file is still in use by FileField if it's in use by any revisions.
Comment #5
luksakthanks quicksketch, this resolved the issue.
Comment #6
quicksketchSweet. Good to know FileField and IMCE are starting to play nicely together finally.
Comment #7
luksaktrue
thanks for the great work!
i have another small bug: when i open IMCE some of the buttons at the top are not showing up.
Comment #8
quicksketchYou should file an issue with the IMCE module.