node:source:nid not working properly

Created on 28 April 2014, over 10 years ago
Updated 27 August 2023, over 1 year ago

Hi,

When I put the token projects/[node:nid], files end up in sites/default/files/projects/%NID%/file_01.jpg as is suposed. However, I have a multilingual web site. So I need to reference not the node:nid, but the node:source:nid, or I'll end up with duplicated images all over the projects folder.

But, when I use the [node:source:nid], files end up in sites/default/files/projects//file_01.jpg

And I also end up sometimes with a Deprecated function: preg_replace(), on filefield_paths/filefield_paths.module line 328 (and another just below).

Don't really know what to do more but to point out these. Any help is apreciated :)

Thanks in advance!

(I'll try to see if I have the latest night build and test it)

🐛 Bug report
Status

Closed: works as designed

Component

Code

Created by

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

No activities found.

Production build 0.71.5 2024