Skip to content
Snippets Groups Projects
Commit 5ee5b5f6 authored by Dries Buytaert's avatar Dries Buytaert
Browse files

- Patch #493466 by arianek, jhodgdon: documentation for file_save_upload...

- Patch #493466 by arianek, jhodgdon: documentation for file_save_upload inaccurately describes a parameter.
parent 1a2d10ec
No related branches found
No related tags found
No related merge requests found
......@@ -1101,9 +1101,11 @@ function file_space_used($uid = NULL, $status = FILE_STATUS_PERMANENT) {
* A string containing the directory $source should be copied to. If this is
* not provided or is not writable, the temporary directory will be used.
* @param $replace
* A boolean indicating whether an existing file of the same name in the
* destination directory should overwritten. A false value will generate a
* new, unique filename in the destination directory.
* Replace behavior when the destination file already exists:
* - FILE_EXISTS_REPLACE: Replace the existing file.
* - FILE_EXISTS_RENAME: Append _{incrementing number} until the filename is
* unique.
* - FILE_EXISTS_ERROR: Do nothing and return FALSE.
* @return
* An object containing the file information if the upload succeeded, FALSE
* in the event of an error, or NULL if no file was uploaded.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment