This may be related to http://drupal.org/node/877452#comment-4499144.
I have installed the patch on #62.
Here’s what I was able to do.
In a content add form with a ‘file’ field, I was able to
• Successfully upload a file – this saved the file on the server and also in the content item
• Successfully remove the file from the content item, but this did not remove the file from the server
In the ‘my account’ -> ‘file browser’ tab
• Unsuccessful in deleting the uploaded file, which should have been removed in step 2 above. It throws a 'File in use by another application' error
Troubleshooting this further, removing a file from the content item ui deletes the record from the file field table. But the record in the file_usage and file_managed tables for (fid) is still there. This is preventing the deletion of the file from the my account - file browser ui.
Anyone have similar issues or know of a patch for this?
Thanks
Comments
Comment #1
f-it commentedConfirm, the same problem in Drupal 6.
I can't delete files uploaded throug filefield_sources -> IMCE browser.
It works only in mysite.com/imce standalone IMCE browser.
Any suggestions?
subscr...
Comment #2
quicksketchFor the most part, it sounds like FileField/IMCE are doing what they're supposed to. You can't delete a file that is in use by piece of content; you have to delete the content or the content's usage of the file first. IMCE at the same time *also* makes a file usage record I believe, but I don't know what reference it makes it to. If any file usage records are in place, the file can't be deleted. So the root problem here is figuring out what isn't deleting its file usage records when it should be. FileField Sources doesn't actually make any usage records at all... it just passes file IDs to File module and then it handles the rest. So my guess is if this needs to be fixed anywhere, it's either in core's File module or in IMCE.
Comment #3
codecouleurs commentedI had the same issue and it was due to the revision system. A file linked to a revision cannot be deleted.