This is a small utility module that automatically stops Drupal from renaming new files upload via filefield CCK. When 2 files with the same name exist, the older files will be renamed.
What it Does
Default Drupal Behavior
<newest>-------------------------------<older>-------------------------------<oldest>
mydoc_3.doc ------ mydoc_2.doc ------ mydoc_1.doc ------ mydoc_0.doc ------ mydoc.doc
Behavior with this Module
<newest>-------------------------------<older>-------------------------------<oldest>
mydoc.doc ------ mydoc_3.doc ------ mydoc_2.doc ------ mydoc_1.doc ------ mydoc_0.doc
Why I Created this Module
The problem with drupal is if you have a file called "mydoc.doc" upload it to a node, then make changes to "mydoc.doc" and upload the newer version, the newer version will be renamed to "mydoc_0.doc" because at the time of upload the old file was blocking the desired path name.
This module solves that problem by swapping the names of the older and newer file so that the newly uploaded file will retain its original name.
This also works with node revisioning as well. When you revert a revision, the file names are swapped so the newest revision has the original filename.