Skip navigation
Help

file_load

7 file.inc file_load($fid)

Load a file object from the database.

Parameters

$fid: A file ID.

Return value

A file object.

See also

hook_file_load()

file_load_multiple()

Related topics

36 calls to file_load()

File

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

Code

function file_load($fid) {
  $files = file_load_multiple(array($fid), array());
  return reset($files);
}