Get the path to the ‘files’ folder in Drupal 7

variable_get('file_public_path', conf_path() . '/files')

Will give the result, for example,

sites/default/files

Leave a Reply

Your email address will not be published. Required fields are marked *