I can't find the info through any search string I can think of. I need to retrieve the complete path including the filename for a file stored by a node.
public://module_name/filename.ext I can get the public://module_name part but not the file name. I think I am having a basic misunderstanding on how Drupal stores files. I have written a custom module and it puts the file where I specify: public://my_module. If the file is an Image (jpg) there is no problem. I can display the file name with the generic file format. so I know that the information is available, I just cant figure out how to access it.
can any one point me at an example, API description or tutorial that covers how to access a file in the current node?