Jelajahi Sumber

filesystem class

zhangdehua 7 bulan lalu
induk
melakukan
b84592ec89
1 mengubah file dengan 1 tambahan dan 1 penghapusan
  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'),
             [