Closed (fixed)
Project:
File (Field) Paths
Version:
7.x-1.0-alpha1
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
11 Jan 2011 at 23:47 UTC
Updated:
26 Jul 2011 at 04:49 UTC
Jump to comment: Most recent file
Comments
Comment #1
harper1983 commentedCorrection... Not sure what was going on before. However, now seeing _0 appended after every other save and removed on saves in between...
Initial upload: filename.pdf
Next save: filename_0.pdf
Next save: filename.pdf
Next save: filename_0.pdf
Next save: filename.pdf
Comment #2
egil commentedI can confirm this issue.
Comment #3
canzi commentedi can also confirm this issue
Comment #4
MilesDP5 commentedBear with me as I'm new to Git. Here is a patch against 7.x-1.x.
The problem is that we are comparing the full file path (directory/filename.ext) against just the file name (filename.ext). Since these are always different the system tries to re-move the files into place which results in Drupals default behavior when two identical files exist, add '_0'. FileField Paths then removes the old files. So the user seen the file(s) name changing with '_0'.
Comment #5
aidanlis commentedCommitted to 7.x-1.x, let's hope you got lucky MilesDP5!
Comment #6
alexiosc commentedI just manually patched 7.x-1.0-alpha1 and can verify it works, but I'll get back to you if I see any regressions.
Comment #8
canzi commentedconfirmed working - thank you