Closed (fixed)
Project:
Token
Version:
6.x-1.18
Component:
Code
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
29 Dec 2011 at 14:14 UTC
Updated:
20 Mar 2012 at 17:00 UTC
I am using [node:field_name-filefield-view] token to show the file. But it does use in FileField Path setting. Therefore if FileField Path setting is:
issues/client/[nid]/[mod-dd]-[mod-mm]-[mod-yyyy]
Output looks like:
/sites/default/files/file.jpg
instead of
/sites/default/files/issues/client/90/29-12-2011/file.jpg
It is mandatory to fix it! Any ideas how to do it?
Comments
Comment #1
Omio commenteddoes anybody have any ideas????
Comment #2
dave reidChanging the filefield path setting doesn't automatically move any existing uploaded files. Look at your file system. Does the file actually exist at sites/default/files/file.jpg or sites/default/files/issues/client/90/29-12-2011/file.jpg?
Comment #3
Omio commentedFile itself is located at sites/default/files/issues/client/90/29-12-2011/file.jpg, but token goes here sites/default/files/issues/client/90/29-12-2011/file.jpg, without issues/client/90/29-12-2011. I do not need to move the file to the different place. I need to get the right url to the file.
Comment #4
dave reidYou're likely going to have to move this issue to the module which is responsible for that token, which in D6 is not Token module itself. I'm not able to tell which module is providing that token if it's FileField, CCK, or FileField Paths.
Comment #6
dave reid