فهرست منبع

filesystem class

zhangdehua 7 ماه پیش
والد
کامیت
8d12d0a05c
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('uploads/' . $fileInfo['file_path']);
+        $filePath = config('app.host') . '/uploads/' . $fileInfo['file_path'];
         $storageObj = $bucket->upload(
             fopen($filePath, 'r'),
             [