Name Locationsort ascending Description
file_create_url core/includes/file.inc Creates a web-accessible URL for a stream to an external or local file.
file_prepare_directory core/includes/file.inc Checks that the directory exists and is writable.
file_ensure_htaccess core/includes/file.inc Creates a .htaccess file in each files directory if it is missing.
file_save_htaccess core/includes/file.inc Creates a .htaccess file in the given directory.
file_htaccess_lines core/includes/file.inc Returns the standard .htaccess lines that Backdrop adds to file directories.
file_load_multiple core/includes/file.inc Loads file entities from the database.
file_load core/includes/file.inc Loads a single file entity from the database.
file_save core/includes/file.inc Saves a new or updated file.
file_usage_list core/includes/file.inc Determines where a file is used.
file_usage_add core/includes/file.inc Records that a module is using a file.
file_usage_delete core/includes/file.inc Removes a record to indicate that a module is no longer using a file.
file_copy core/includes/file.inc Copies a file to a new location and adds a file record to the database.
file_valid_uri core/includes/file.inc Determines whether the URI has a valid scheme for file API operations.
file_unmanaged_copy core/includes/file.inc Copies a file to a new location without database changes or hook invocation.
file_build_uri core/includes/file.inc Constructs a URI to Backdrop's default files location given a relative path.
file_destination core/includes/file.inc Determines the destination path for a file.
file_move core/includes/file.inc Moves a file to a new location and update the file's database entry.
file_unmanaged_move core/includes/file.inc Moves a file to a new location without database changes or hook invocation. This is a powerful function that in many ways performs like an advanced version of rename().
file_munge_filename core/includes/file.inc Modifies a filename as needed for security purposes.
file_unmunge_filename core/includes/file.inc Undoes the effect of file_munge_filename().
file_create_filename core/includes/file.inc Creates a full file path from a directory and filename.
file_delete core/includes/file.inc Deletes a file and its database record.
file_delete_multiple core/includes/file.inc Deletes files.
file_unmanaged_delete core/includes/file.inc Deletes a file without database changes or hook invocations.
file_unmanaged_delete_recursive core/includes/file.inc Deletes all files and directories in the specified filepath recursively.
file_space_used core/includes/file.inc Determines total disk space used by a single user or the whole filesystem.
file_save_upload core/includes/file.inc Saves a file upload to a new location.
backdrop_move_uploaded_file core/includes/file.inc Moves an uploaded file to a new location.
file_validate core/includes/file.inc Checks that a file meets the criteria specified by the validators.
file_validate_name_length core/includes/file.inc Checks for files with names longer than can be stored in the database.
file_validate_extensions core/includes/file.inc Checks that the filename ends with an allowed extension.
file_validate_size core/includes/file.inc Checks that the file's size is below certain limits.
file_validate_is_image core/includes/file.inc Checks that the file is recognized by image_get_info() as an image.
file_validate_image_resolution core/includes/file.inc Verifies that image dimensions are within the specified maximum and minimum.
file_save_data core/includes/file.inc Saves a file to the specified destination and creates a database entry.
file_unmanaged_save_data core/includes/file.inc Saves a file to the specified destination without invoking file API.
file_transfer core/includes/file.inc Transfers a file to the client using HTTP.
file_download core/includes/file.inc Page callback: Handles private file transfers.
file_download_headers core/includes/file.inc Retrieves headers for a private file download.
file_download_access core/includes/file.inc Checks that the current user has access to a particular file.
file_scan_directory core/includes/file.inc Finds all files that match a given mask in a given directory.
file_upload_max_size core/includes/file.inc Determines the maximum file upload size by querying the PHP settings.
file_get_mimetype core/includes/file.inc Determines an Internet Media Type or MIME type from a filename.
backdrop_chmod core/includes/file.inc Sets the permissions on a file or directory.
backdrop_unlink core/includes/file.inc Deletes a file.
backdrop_realpath core/includes/file.inc Resolves the absolute filepath of a local URI or filepath.
backdrop_dirname core/includes/file.inc Gets the name of the directory from a given path.
backdrop_basename core/includes/file.inc Gets the filename from a given path.
backdrop_mkdir core/includes/file.inc Creates a directory using Backdrop's default mode.
backdrop_rmdir core/includes/file.inc Removes a directory.

Pages