Posted by Omio on December 29, 2011 at 2:14pm
4 followers
Jump to:
| Project: | Token |
| Version: | 6.x-1.18 |
| Component: | Code |
| Category: | support request |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | closed (fixed) |
Issue Summary
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
#1
does anybody have any ideas????
#2
Changing 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?
#3
File 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.
#4
You'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.
#6
#7
Automatically closed -- issue fixed for 2 weeks with no activity.