Skip navigation
Help

file_build_uri

7 file.inc file_build_uri($path)

Given a relative path, construct a URI into Drupal's default files location.

Related topics

3 calls to file_build_uri()

File

drupal/includes/file.inc, line 922
API for handling file uploads and server file management.

Code

function file_build_uri($path) {
  $uri = file_default_scheme() . '://' . $path;
  return file_stream_wrapper_uri_normalize($uri);
}