Defines a "managed_file" Form API field and a "file" field for Field module.
File
core/modules/file/file.module
Functions
Name | Description |
---|---|
file_copy | Copies a file to a new location and adds a file record to the database. |
file_cron | Implements hook_cron(). |
file_file_download | Implements hook_file_download(). |
file_file_predelete | Implements hook_ENTITY_TYPE_predelete() for file entities. |
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_class | Gets a class for the icon for a MIME type. |
file_icon_map | Determines the generic icon MIME package based on a file's MIME type. |
file_load Deprecated | Loads a single file entity from the database. |
file_load_multiple Deprecated | Loads file entities from the database. |
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_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_save_upload | Saves file uploads to a new location. |
file_theme | Implements hook_theme(). |
file_tokens | Implements hook_tokens(). |
file_token_info | Implements hook_token_info(). |
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 as a valid 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. |
template_preprocess_file_link | Prepares variables for file link templates. |
template_preprocess_file_managed_file | Prepares variables for file form widget templates. |
_views_file_status | Formats human-readable version of file status. |
Please login to continue.