function file_build_uri

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

Related topics

3 calls to file_build_uri()
file_unmanaged_copy in drupal/core/includes/file.inc
Copies a file to a new location without invoking the file API.
StreamWrapperTest::testUriFunctions in drupal/core/modules/system/lib/Drupal/system/Tests/File/StreamWrapperTest.php
Test the URI and target functions.
system_retrieve_file in drupal/core/modules/system/system.module
Attempts to get a file using Guzzle HTTP client and to store it locally.

File

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