소스 검색

filesystem class

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

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

@@ -75,7 +75,7 @@ class Upload extends Controller
         $storage = new StorageClient(['projectId' => 'dihua-01', 'keyFilePath' => $keyFilePath]);
         $bucket = $storage->bucket('freeshippingvps');
 
-        $filePath = public_path($fileInfo['file_path']);
+        $filePath = public_path('uploads/' . $fileInfo['file_path']);
         $storageObj = $bucket->upload(
             fopen($filePath, 'r'),
             [