Closed (works as designed)
Project:
Upload File Replace (for filefield CCK)
Version:
6.x-1.1
Component:
Documentation
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
17 Dec 2009 at 18:21 UTC
Updated:
9 Aug 2010 at 03:51 UTC
Comments
Comment #1
markDrupal commentedFrom what you say it sounds like you are using the "Upload" module? This module(upload_replace) will not do anything for the upload module. It only works with filefield uploads. (until Drupal 7)
It depends on 2 hooks in the filefield module "file_update" and "file_delete".
The other issue you might be running into is lack of "node revisioning". If you have sufficient permissions, the admin user does, you will see a check box in the node edit form labeled " Create new revision".
If you have that box checked and replace a file, the old version of the file will remain. At least it does for me, as I have multiple version of a file on my webserver. The older files don't get removed.
Let me know how it is working for you.
Comment #2
markDrupal commentedComment #3
markDrupal commentedSounds like you need to enable "node revisioning" to allow for multiple versions of the same node.
Comment #4
jason.bell commentedThanks. Sorry I didn't get notification of your previous response here and see now what you describe.
Comment #5
minhtao commentedIt partially works when you invoke the update hook fron the upload module . :)
Comment #6
minhtao commentedActually, have you tried to upload the same file several times and then delete the latest one (the one that actually have the real name)? I think that creates a bug.
Like:The selected file [filename = ''] could not be copied, because no file by that name exists. Please check that you supplied the correct filename.