Browse Source

Merge branch 'rmaster' of 39.97.239.116:gyfl/xyzshop into rmaster

stanley-king 4 years ago
parent
commit
7315047aea
1 changed files with 2 additions and 1 deletions
  1. 2 1
      upfile.php

+ 2 - 1
upfile.php

@@ -65,9 +65,10 @@ if ($_FILES)
         if ($result) {
         if ($result) {
             $ret['file_path'] = $filename;
             $ret['file_path'] = $filename;
             $ret['file_site_path'] = $base_site_path .'/' . $filename;
             $ret['file_site_path'] = $base_site_path .'/' . $filename;
+            $ret['base'] = BASE_ROOT_PATH;
             upfile_joutput_data($ret);
             upfile_joutput_data($ret);
         } else {
         } else {
-            upfile_joutput_error(7,[$dest_file]);
+            upfile_joutput_error(7,[BASE_ROOT_PATH]);
         }
         }
     }
     }
 }
 }