Browse Source

Changing default upload document ajax to overwrite. see #7244

Julio Montoya 10 năm trước cách đây
mục cha
commit
d7719972d2
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  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';