file.module

Defines a "managed_file" Form API field and a "file" field for Field module.

File

drupal/core/modules/file/file.module
View source

Functions

Namesort descending Description
file_ajax_progress Ajax callback: Retrieves upload progress.
file_ajax_upload Ajax callback: Processes file uploads and deletions.
file_copy Copies a file to a new location and adds a file record to the database.
file_cron Implements file_cron()
file_element_info Implements hook_element_info().
file_file_download Implements hook_file_download().
file_file_predelete Implements hook_file_predelete().
file_get_content_headers Examines a file entity and returns appropriate content headers for download.
file_get_file_references Retrieves a list of references to a file.
file_help Implements hook_help().
file_icon_map Determines the generic icon MIME package based on a file's MIME type.
file_icon_path Creates a path to the icon for a file entity.
file_icon_url Creates a URL to the icon for a file entity.
file_library_info Implements hook_library_info().
file_load Loads a single file entity from the database.
file_load_multiple Loads file entities from the database.
file_managed_file_pre_render Render API callback: Hides display of the upload or remove controls.
file_managed_file_process Render API callback: Expands the managed_file element type.
file_managed_file_save_upload Saves any files that have been uploaded into a managed_file element.
file_managed_file_submit Form submission handler for upload / remove buttons of managed_file elements.
file_managed_file_validate Render API callback: Validates the managed_file element.
file_managed_file_value Render API callback: Determines the value for a managed_file type element.
file_menu Implements hook_menu().
file_move Moves a file to a new location and update the file's database entry.
file_progress_implementation Determines the preferred upload progress implementation.
file_save_data Saves a file to the specified destination and creates a database entry.
file_theme Implements hook_theme().
file_usage Returns the file usage service.
file_validate Checks that a file meets the criteria specified by the validators.
file_validate_extensions Checks that the filename ends with an allowed extension.
file_validate_image_resolution Verifies that image dimensions are within the specified maximum and minimum.
file_validate_is_image Checks that the file is recognized by image_get_info() as an image.
file_validate_name_length Checks for files with names longer than can be stored in the database.
file_validate_size Checks that the file's size is below certain limits.
theme_file_icon Returns HTML for an image with an appropriate icon for the given file.
theme_file_link Returns HTML for a link to a file.
theme_file_managed_file Returns HTML for a managed file element.