summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--includes/file.inc2
1 files changed, 1 insertions, 1 deletions
diff --git a/includes/file.inc b/includes/file.inc
index 80fb3f9a3..e9529b389 100644
--- a/includes/file.inc
+++ b/includes/file.inc
@@ -388,7 +388,7 @@ function file_save_upload($source, $dest = 0, $replace = FILE_EXISTS_RENAME) {
$temporary = 1;
if (is_file($file->filepath)) {
// If this file was uploaded by this user before replace the temporary copy.
- $replace = 1;
+ $replace = FILE_EXISTS_REPLACE;
}
}