function file_build_uri

7.x file.inc file_build_uri($path)
8.x file.inc file_build_uri($path)

Constructs a URI to Drupal's default files location given a relative path.

Related topics

4 calls to file_build_uri()
file_unmanaged_copy in drupal/includes/file.inc
Copies a file to a new location without invoking the file API.
image_style_url in drupal/modules/image/image.module
Returns the URL for an image derivative given a style and image path.
StreamWrapperTest::testUriFunctions in drupal/modules/simpletest/tests/file.test
Test the URI and target functions.
system_retrieve_file in drupal/modules/system/system.module
Attempts to get a file using drupal_http_request and to store it locally.

File

drupal/includes/file.inc, line 964
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);
}