File interface in Drupal 9
Same name and namespace in other branches
- 8 core/includes/file.inc \file
- 4 includes/file.inc \file
- 5 includes/file.inc \file
- 6 includes/file.inc \file
- 7 includes/file.inc \file
Common file handling functions.
File
- core/
includes/ file.inc, line 11 - API for handling file uploads and server file management.
Functions
Name | Location | Description |
---|---|---|
file_build_uri Deprecated |
core/ |
Constructs a URI to Drupal's default files location given a relative path. |
file_create_url Deprecated |
core/ |
Creates a web-accessible URL for a stream to an external or local file. |
file_get_file_references |
core/ |
Retrieves a list of references to a file. |
file_munge_filename Deprecated |
core/ |
Modifies a filename as needed for security purposes. |
file_unmunge_filename Deprecated |
core/ |
Undoes the effect of file_munge_filename(). |
file_url_transform_relative Deprecated |
core/ |
Transforms an absolute URL of a local file to a relative URL. |
Constants
Name | Location | Description |
---|---|---|
FILE_STATUS_PERMANENT Deprecated |
core/ |
Indicates that the file is permanent and should not be deleted. |
Classes
Interfaces
Name | Location | Description |
---|---|---|
FileInterface |
core/ |
Defines getter and setter methods for file entity base fields. |