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