1.39.2.14 (checked in on 2006/06/01 at 21:55:58 by killes)
API for handling file uploads and server file management.
| Name | Description |
|---|---|
| FILE_CREATE_DIRECTORY | |
| FILE_DIRECTORY_TEMP | |
| FILE_DOWNLOADS_PRIVATE | |
| FILE_DOWNLOADS_PUBLIC | |
| FILE_EXISTS_ERROR | |
| FILE_EXISTS_RENAME | |
| FILE_EXISTS_REPLACE | |
| FILE_MODIFY_PERMISSIONS | |
| IS_WINDOWS |
| Name | Description |
|---|---|
| file_check_directory | Check that directory exists and is writable. |
| file_check_location | Check if a file is really located inside $directory. Should be used to make sure a file specified is really located within the directory to prevent exploits. |
| file_check_path | Checks path to see if it is a directory, or a dir/file. |
| file_check_upload | Check if $source is a valid file upload. |
| file_copy | Copies a file to a new location. This is a powerful function that in many ways performs like an advanced version of copy(). Checks if $source and $dest are valid and readable/writable. Performs a file copy if $source is not equal to $dest. If file... |
| file_create_filename | |
| file_create_path | Make sure the destination is a complete path and resides in the file system directory, if it is not prepend the file system directory. |
| file_create_url | Create the download path to a file. |
| file_delete | |
| file_download | Call modules to find out if a file is accessible for a given user. |
| file_move | Moves a file to a new location. Checks if $source and $dest are valid and readable/writable. Performs a file move if $source is not equal to $dest. If file already exists in $dest either the call will error out, replace the file or rename the file... |
| file_save_data | Save a string to the specified destination |
| file_save_upload | Saves a file upload to a new location. The source file is validated as a proper upload and handled as such. |
| file_scan_directory | Finds all files that match a given mask in a given directory. |
| file_transfer | Transfer file using http to client. Pipes a file through Drupal to the client. |