Parcourir la source

Changing default upload document ajax to overwrite. see #7244

Julio Montoya il y a 10 ans
Parent
commit
d7719972d2
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  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';