Hi

I've installed upload path into my drupal and sometimes (few times) it doesn't work right. I've created this path:

[type]/[nid]

But in some cases, the files ends directly into [type] folder. It seems the module is ignoring the [nid] token. I haven't find any pattern to reproduce this bug, it just happens sometimes and the only way to notice it is looking at the file paths.

Kind regards and congratulations for this module (keep it alive ;) )

Comments

NoRandom’s picture

Sorry for double posting, it seems we can't edit the first post of a thread.

...if I write the post before I'd find the reason of the bug before:

1.- You create a new node
2.- You upload a couple of files and they are stored in the temporary files folder /files/ (i.e.)
3.- You press "Send" and the module attempts to move the files to the folder /files/[type]/[nid]/ but [nid] is not defined since the node doesn't exist yet.

So it seems to be an order of process issue, but I don't know anything about php to check the module code to check it.

Regards. (...and sorry for my poor english)

nath’s picture

Seems to be duplicate of #191571: Wrong use of hook_nodeapi

davidwhthomas’s picture

Status: Active » Closed (fixed)

fixed in Drupal 6 version