Closed andreladocruz closed 2 years ago
Found the issue. =P
change "key_file" to "key_file_path" in filesystems.php
Sorry
Hey @andreladocruz how are you?
I'm having the exact same issue. That's how I declared the configs on my filesystems.php.
How did you fixed it?
I think you must use only one key.
key_file_path or key_file.
@andreladocruz Didn't work :( Would it possible be a misconfiguration in my bucket?
When I try to debug my storage var, it keeps returning false.
I think $request->file is an object and has a method called "storePubliclyAs".
I'm working with @MatheusAparecido on a solution for this problem.
What we already tried:
.env
file.Using both methods returned "false" as response when we're debugging the $disk->put('folder/', $image) method. But when we try to retrieve files from the blobstorage, we receive them sucessfully.
@andreladocruz @AlexVanderbist any possible issues that could be causing this? :(
Has the file is been written to GCS?
I really did not check the result of a successful write.
Well, after two days trying to solve this problem, we decided to port our project back to Laravel 8 (since we had the GCS implemented in other projects in this version).
for me the put
method always return false while can I still make a directory \Illuminate\Support\Facades\Storage::makeDirectory()
I found that you can add throw
to config so put
will throw exception rather than return false
'gcs' => [
'driver' => 'gcs',
'throw' => true,
]
In my case the error is
"message": "Cannot insert legacy ACL for an object when uniform bucket-level access is enabled. Read more at https://cloud.google.com/storage/docs/uniform-bucket-level-access"
Hi,
I'm using it in my Laravel 9 project with the following code:
the put method returns false and no file is created.
No exception thrown.
Any help?