The problem: When you change the output of a link, the link itself will not reflect the # value after the file IF THAT file is a duplicate name.
Example 1: (works)
You create a field using file field module, upload a file called example1.pdf and in the view you reference that example1.pdf and link to that file. The file is displayed as it's full filename of example1.pdf and works fine. if you upload another file with the EXACT SAME name and drupal auto-renames it to example1_2.pdf. It will then Display example1.pdf and point to example1_2.pdf. works fine
Example 2: (doesn't work)
you create a field using file field module. You change the output option of "Rewrite the output of this field" to say "click here".
you also modify the "Output this field as a link" and change it to reflect /files/[field_whateveryoucalledit_fid].
You then upload a file called example1.pdf. It is displayed as "click here" and points to example1.pdf.
you then upload another DIFFERENT file called example1.pdf. Drupal detects a duplicate name and renames it as example1_2.pdf. The link then says "click here" and points to example1.pdf (NOT the correct example1_2.pdf).
if there is a correct way to deal with this problem i havn't found it yet.
Comments
Comment #1
dawehnerThis output is from filefield module, so this issue should be probably filled against filefield.
Comment #2
quicksketchThis actually isn't even caused by FileField, it's the behavior of Drupal core.
Comment #3
quicksketch