瀏覽代碼

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'),
             [