On Dec 6, 2007 8:11 AM, Philippe Jadin <philippe.jadin@gmail.com> wrote:
On Dec 6, 2007 2:46 PM, Darrel O'Pry <dopry@thing.net> wrote:
Not it is not possible to safely share files tracked by Drupal in D5 and below. There are changes in D6 that make this possible, but no interface has been written for it yet.
Could you explain what is not safe or give some pointers?
If multiple modules are sharing a file there's no way for them to know that another is using it. So when a node with a file is attached is deleted, any other modules' nodes that are using that file will be left with a database record but no file. I'm not sure what changes dopry is referring to, as far as I know D6 has the same problem. Unresolved issues on how to handle deletion were what held up the patch to add a hook_file: http://drupal.org/node/142995 andrew