I have a rule performing an action on "After saving new content ".
When this action gets performed as new content is being created and any number of files are attached to the new content, a duplicate file gets created for each attached file.
I suspect that a duplicate file is created for each "After saving new content" rule that gets executed.
This does not happen with the rule "Content is going to be saved" nor does it happen with the rule "After updating existing content".
Comments
Comment #1
thekevinday commentedI discovered that this happens when the action is to either "unpublish" the content and the node type's default workflow is set to unpublished.
I have not tested the published states with this issue.
This is suggesting that unpublishing an already unpublished node for just created content with the rule "After saving new content" will cause any attached files to be duplicated.
Comment #2
fivehimself commentedI'm experiencing the same problem... It only happens when rules publishes the node based on a workflow change. If it moves to a "draft" state (not published in my scenario) there is only one filenode created. But when I change the workflow state to "published" (node get's published by an action) there are 2 filenodes created in stead of one.
Comment #3
fagoI opened a fileframework bug report for that #544766: Duplicate files with duplicate saves
Comment #4
thekevinday commentedGuess I will close this for now as duplicate of #544766.