You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jul 17, 2024. It is now read-only.
Hello, I'm using your GCS driver with my laravel project and I'm attempting to store a file publicly but also set the contentType I've researched and found that I can pass an array metadata with options that should be passed along to GCS but it appears as I'm doing something wrong.
It would seem that the UploadedFile classes storePubliclyAs was the culprit. By going back to using Storage::cloud()->putAs($path, $filename, $options); I was able to set the contentType through the metadata just fine. Closing issue.
Hello, I'm using your GCS driver with my laravel project and I'm attempting to store a file publicly but also set the
contentType
I've researched and found that I can pass an arraymetadata
with options that should be passed along to GCS but it appears as I'm doing something wrong.I've also verified that
$file->getMimeType()
istext/vcard
but always ends up asapplication/octet-stream
in GCS bucket.I've also tried every variation of
contentType
Content-Type
mimeType
mimetype
etc inside and outside ofmetadata
array and am at a loss.Any help would be greatly appreciated!
The text was updated successfully, but these errors were encountered: