Explorar o código

filesystem class

zhangdehua hai 7 meses
pai
achega
b84592ec89
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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'),
             [