function file_build_uri

Same name in other branches
  1. 9 core/includes/file.inc \file_build_uri()
  2. 8.9.x core/includes/file.inc \file_build_uri()

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 includes/file.inc
Copies a file to a new location without invoking the file API.
image_style_url in modules/image/image.module
Returns the URL for an image derivative given a style and image path.
StreamWrapperTest::testUriFunctions in modules/simpletest/tests/file.test
Test the URI and target functions.
system_retrieve_file in modules/system/system.module
Attempts to get a file using drupal_http_request and to store it locally.

File

includes/file.inc, line 990

Code

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

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.