I'm triying to add nid to my file name but none of the patterns below was helpful :
[nid] [node:nid] [entity:id]
The question is : how can I add an node ID to my pattern?

Comments

Alireza Tabatabaeian created an issue. See original summary.

matthieuscarset’s picture

Priority: Normal » Critical

Same thing.

This module doesn't allow users to user Node's related token to build File fields' directory paths.

This seems to be a critical issue to me as it's the most common functionality required by users.

xaris.tsimpouris’s picture

I can verify this is a serious problem. Indeed, after first installation [node:nid] was reported as an invalid token. However, uninstalling and installing again (as far as I could remember) fixed the problem (!) and became a valid/working token. However, no node tokens is shown in the token browser.

AdamEvertsson’s picture

I can agree. While migrating to Drupal 8.8.0 I was a bit confused when using this Drupal 8 version compared to many years of using the Drupal 7 version.
To have the node tokens available in the token browser is a must, I say. Hope this can be arranged, along with a stable release in the future.

TD44’s picture

The D7 module was a "must have", the D8 last release was 4 years ago..

Nathaniel’s picture

This appears to be working in the dev release? 8.x-1.x-dev updated 21 Jun 2018

[node:nid]

jonathanshaw’s picture

Priority: Critical » Major
Status: Active » Closed (cannot reproduce)

Closing as it appears to be working, unless someone an provide details steps to reproduce.