After creating a new audio node, I noticed that inside my 'audio' folder, there are multiple copies of the same mp3 file:

  • my_file.mp3
  • my_file_0.mp3
  • ...
  • my_file_4.mp3

The audio node itself is referencing the mp3 file with the highest number.

Now, some time before creating my latest audio node I'd enabled 'revisions' for the audio-node type. I'm wondering if this could be a 'feature' of the revision system when used with an audio node (this is why I filed a 'support request' instead of a 'bug report)?

Any ideas anyone? Thanks.
--

Jim

Comments

hbar’s picture

So yeah, to answer my own question, it was the revisions causing the duplicate files. I'm not sure if creating a new audio file for every revision is the expected behaviour. Is it a bug? Maybe it should be documented, whatever.

I also noticed that the play and download counts were reset to zero after every revision.

After disabling revisions for Audio nodes, and deleting all the previous revisions, Drupal deleted the extra files for me, so now everything's fine again.