How to set file upload directory by parent node content type and node id I am trying to set the upload directory for a file field to contain the content type (and node id) as part of the path.

The desired path for my public files field is publication_documents/pub/content_type/node_id_of_node_this_was_uploaded_to/filename

I have tokens installed, but it doesn't seem to offer me tokens related to the parent node in the upload directory setting:





Slide 30 of This slideshow seems to indicate that it is possible, but how can I do it?  

In case it matters, I'm using the media and file_entity modules.
File (Field) Paths module should help you.