Functions

Primary tabs

Name Locationsort descending Description Direct uses Strings
file_create_htaccess drupal/includes/file.inc Creates a .htaccess file in the given directory. 2
file_load_multiple drupal/includes/file.inc Loads file objects from the database. 15
file_load drupal/includes/file.inc Loads a single file object from the database. 39
file_save drupal/includes/file.inc Saves a file object to the database. 13
file_usage_list drupal/includes/file.inc Determines where a file is used. 7
file_usage_add drupal/includes/file.inc Records that a module is using a file. 9
file_usage_delete drupal/includes/file.inc Removes a record to indicate that a module is no longer using a file. 8
file_copy drupal/includes/file.inc Copies a file to a new location and adds a file record to the database. 6
file_valid_uri drupal/includes/file.inc Determines whether the URI has a valid scheme for file API operations. 5
file_unmanaged_copy drupal/includes/file.inc Copies a file to a new location without invoking the file API. 13
file_build_uri drupal/includes/file.inc Constructs a URI to Drupal's default files location given a relative path. 4
file_destination drupal/includes/file.inc Determines the destination path for a file. 3
file_move drupal/includes/file.inc Moves a file to a new location and update the file's database entry. 10
file_unmanaged_move drupal/includes/file.inc Moves a file to a new location without database changes or hook invocation. 6
file_munge_filename drupal/includes/file.inc Modifies a filename as needed for security purposes. 6
file_unmunge_filename drupal/includes/file.inc Undoes the effect of file_munge_filename(). 1
file_create_filename drupal/includes/file.inc Creates a full file path from a directory and filename. 3
file_delete drupal/includes/file.inc Deletes a file and its database record. 9
file_unmanaged_delete drupal/includes/file.inc Deletes a file without database changes or hook invocations. 12
file_unmanaged_delete_recursive drupal/includes/file.inc Deletes all files and directories in the specified filepath recursively. 13
file_space_used drupal/includes/file.inc Determines total disk space used by a single user or the whole filesystem. 2
file_save_upload drupal/includes/file.inc Saves a file upload to a new location. 7
drupal_move_uploaded_file drupal/includes/file.inc Moves an uploaded file to a new location. 1
file_validate drupal/includes/file.inc Checks that a file meets the criteria specified by the validators. 2
file_validate_name_length drupal/includes/file.inc Checks for files with names longer than we can store in the database. 1
file_validate_extensions drupal/includes/file.inc Checks that the filename ends with an allowed extension. 2
file_validate_size drupal/includes/file.inc Checks that the file's size is below certain limits. 1
file_validate_is_image drupal/includes/file.inc Checks that the file is recognized by image_get_info() as an image. 1
file_validate_image_resolution drupal/includes/file.inc Verifies that image dimensions are within the specified maximum and minimum. 1
file_save_data drupal/includes/file.inc Saves a file to the specified destination and creates a database entry. 9
file_unmanaged_save_data drupal/includes/file.inc Saves a string to the specified destination without invoking file API. 10
file_transfer drupal/includes/file.inc Transfers a file to the client using HTTP. 2
file_download drupal/includes/file.inc Menu handler for private file transfers. 1 1
file_scan_directory drupal/includes/file.inc Finds all files that match a given mask in a given directory. 26 1
file_upload_max_size drupal/includes/file.inc Determines the maximum file upload size by querying the PHP settings. 4
file_get_mimetype drupal/includes/file.inc Determines an Internet Media Type or MIME type from a filename. 6
drupal_chmod drupal/includes/file.inc Sets the permissions on a file or directory. 9
drupal_unlink drupal/includes/file.inc Deletes a file. 18
drupal_realpath drupal/includes/file.inc Resolves the absolute filepath of a local URI or filepath. 47
drupal_dirname drupal/includes/file.inc Gets the name of the directory from a given path. 5
drupal_basename drupal/includes/file.inc Gets the filename from a given path. 32
drupal_mkdir drupal/includes/file.inc Creates a directory using Drupal's default mode. 5
drupal_rmdir drupal/includes/file.inc Removes a directory. 6
drupal_tempnam drupal/includes/file.inc Creates a file with a unique filename in the specified directory. 6
file_directory_temp drupal/includes/file.inc Gets the path of system-appropriate temporary directory. 5 2
file_get_content_headers drupal/includes/file.inc Examines a file object and returns appropriate content headers for download. 1
file_htaccess_lines drupal/includes/file.inc Returns the standard .htaccess lines that Drupal writes to file directories. 2
file_download_headers drupal/includes/file.inc Retrieves headers for a private file download. 3
file_download_access drupal/includes/file.inc Checks that the current user has access to a particular file. 1
file_mimetype_mapping drupal/includes/file.mimetypes.inc Return an array of MIME extension mappings. 1

Pages

Other projects