소스 검색

filesystem class

zhangdehua 1 년 전
부모
커밋
bac81b0273
1개의 변경된 파일3개의 추가작업 그리고 1개의 파일을 삭제
  1. 3 1
      app/store/controller/Upload.php

+ 3 - 1
app/store/controller/Upload.php

@@ -75,7 +75,9 @@ class Upload extends Controller
         $storage = new StorageClient(['projectId' => 'dihua-01', 'keyFilePath' => $keyFilePath]);
         $storage = new StorageClient(['projectId' => 'dihua-01', 'keyFilePath' => $keyFilePath]);
         $bucket = $storage->bucket('freeshippingvps');
         $bucket = $storage->bucket('freeshippingvps');
 
 
-        $filePath = config('app.app_host') . '/uploads/' . $fileInfo['file_path'];
+        //$filePath = config('app.app_host') . '/uploads/' . $fileInfo['file_path'];
+        $filePath = '/etc/nginx/nginx/html/vape_shop/public/uploads/' . $fileInfo['file_path'];
+
         Log::error($filePath);
         Log::error($filePath);
         $storageObj = $bucket->upload(
         $storageObj = $bucket->upload(
             fopen($filePath, 'r'),
             fopen($filePath, 'r'),