sugar1569 пре 7 година
родитељ
комит
c8749cb34f
1 измењених фајлова са 1 додато и 1 уклоњено
  1. 1 1
      extend/service/UploadService.php

+ 1 - 1
extend/service/UploadService.php

@@ -163,7 +163,7 @@ class UploadService
         $fileName = basename($filePath);
         $savePath = $dir.DS.$pre.$fileName;
         $img->thumb($width,$height)->save($savePath);
-        $savePath = str_replace(ROOT_PATH,'',$savePath);
+        $savePath = str_replace(ROOT_PATH.'public','',$savePath);
         return ltrim($savePath,'.');
     }
 }