Hi,
I use CCK + ImageField to include images to a node. I tried to specify a path like that. "/images/[nid]" but this is not working. When i use "/images/[user]" everything works fine!
Any idea? Thannks.
Christian

Comments

drewish’s picture

Category: bug » feature
Status: Active » Fixed

i you double check [nid] isn't listed in the list of tokens. that's because a file could be attached to multiple files and there's no way of knowing which node it's attached to.

francula’s picture

francula’s picture

Status: Fixed » Active

Hi,
thanks for your fast answer. You are right the [nid] is not in the list. But I would like to have it!

I did not get that sentence "that's because a file could be attached to multiple files"? I think the second files should be a node. But how can that be? Isn't it always the node where the file was uploaded?

Why do I need this? I wanna store all images which are uploaded at a node in a seperate folder (eg. img1, img2, img3 are uploaded at node 1 --> folder 1. ImgA, ImgB are uploaded at node 2 --> folder 2.

Regards Christian

Ps. If you are not going to do it, could you give me a hint if i can do that and how?

quicksketch’s picture

Status: Active » Closed (won't fix)

You can install FileField Paths module to get access to node-level tokens.