Hi.
I'm running drupal 4.6 on W2000 and just installed filemanager and attachment modules. I can upload files normally, however can't figure where can I get the path filemanager used to store my files. If I use node_load(...) get an array called 'attachments' (along with the rest of node data) with a 'filename' key but it only contains the actual filename and not the complete path.
Say my file name is xx.yyy. After upload I found the file in files/active/0/xx.yyy so a link to this file should be http://localhost/drupal/files/active/0/xx.yyy .. . but this path is not stored within the node attachments fields.
While editing the node I can see the complete http:// path ... so, how can I get this value using some php/drupal function?
Thanks.
Regards,
L
By L on
Comments
Filemanager/attachment
I'm having the same problem on Mac OS10.3, for what it's worth...
Dave
Using the first function in filemanager.module:
Use:
e.g. if you've uploaded a public file called 'fred.txt', this will return 'active/0/fred.txt'.
Anj