diff options
author | Dries Buytaert <dries@buytaert.net> | 2009-08-02 05:43:54 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2009-08-02 05:43:54 +0000 |
commit | 5ee5b5f699d3848364a890e17c83ab623bac4abc (patch) | |
tree | 00525506a7fc1d9a109a50d35f8681d55000f72f /includes | |
parent | 1a2d10ecf2f569164dabff10eed3c2ba5306965f (diff) | |
download | brdo-5ee5b5f699d3848364a890e17c83ab623bac4abc.tar.gz brdo-5ee5b5f699d3848364a890e17c83ab623bac4abc.tar.bz2 |
- Patch #493466 by arianek, jhodgdon: documentation for file_save_upload inaccurately describes a parameter.
Diffstat (limited to 'includes')
-rw-r--r-- | includes/file.inc | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/includes/file.inc b/includes/file.inc index 2b94ae03d..73dea894b 100644 --- a/includes/file.inc +++ b/includes/file.inc @@ -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. |