Browse Source

Changing default upload document ajax to overwrite. see #7244

Julio Montoya 10 years ago
parent
commit
d7719972d2
1 changed files with 1 additions and 1 deletions
  1. 1 1
      main/inc/ajax/document.ajax.php

+ 1 - 1
main/inc/ajax/document.ajax.php

@@ -24,7 +24,7 @@ switch($action) {
             exit;
         }
 
-        $ifExists = isset($_POST['if_exists']) ? $_POST['if_exists'] : 'rename';
+        $ifExists = isset($_POST['if_exists']) ? $_POST['if_exists'] : 'overwrite';
 
         if (!empty($_FILES)) {
             require_once api_get_path(LIBRARY_PATH).'fileDisplay.lib.php';