Closed (fixed)
Project:
File (Field) Paths
Version:
6.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
18 Feb 2010 at 06:18 UTC
Updated:
7 Jul 2011 at 18:28 UTC
I Found this entry http://drupal.org/node/330421
Yet it does not seem to be assigning the path the way filefield paths is setup and when used through the default form method.
Any ideas please?
Comments
Comment #1
giorgio79 commentedAh I think I figured it out:
$node = filefield_paths_update($nid, $field_name);
node_save($node);
Will try it now.
Comment #2
giorgio79 commentedThis was it
$node = filefield_paths_node_update($row["nid"]);
Massively fantastic :)
The file was not even in the files folder, just some random folder on the server...
Great module.
Comment #3
decipheredHi giorgio79,
Glad I could be of assistance :)
Seriously though, thanks for supplying your solution, that will help anyone else with a similar query.
Cheers,
Deciphered.
Comment #5
sinasalek commentedAs i understand $node object should be passed as argument rather than its id, although if you're using node_save you don't really need to call this, filefield_path gets call on node save automatically
Also if you're using node_save you should pass filefield items likes the following code, otherwise it doesn't