I can't get tokens to structure the subfolders for uploaded files. Tokens do not appear to be recognised: [user-name] creates a directory
%5Buser-name%5D
Is this a bug or is there something I have missed? Any help would be greatly appreciated.
I am using Drupal v 5.10
Comments
Comment #1
dopry commenteddid you enable the token.module?
Comment #2
jakchapman@groups.drupal.org commentedI also have this problem and token.module is enabled.
Comment #3
albert_philly commentedCan we get support for a wider variety of tokens? I seem to recall I used to be able to use [site-date-yyyy]/[site-date-mm]/[site-date-dd] but these are now interpreted literally.
Comment #4
deciphered@albert_philly
FileField Paths adds a large range of tokens, specifically the ability to use Node based tokens.
Comment #5
davidwhthomas commentedI simply needed date tokens for the folder names.
I created a few extra tokens under the 'user' category for access by filefield
Two hooks are implemented. To use, replace 'modulename' with your module name.
DT
Comment #6
quicksketchYep, any requests for more paths can go to http://drupal.org/project/filefield_paths.
Comment #7
varun21 commentedusing [nid] creates a directory "nid" into which it uploads the file. When you save the node, it copies this file from "nid" folder to the actually directory named after token replacement.