-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ErrorException: fclose(): supplied resource is not a valid stream resource #698
Comments
Looking into this a little more I don't think its anything the superbalist adapter is doing - they simply pass execution off to the official google cloud storage php library:
where
does solve the issue. I could submit a PR with this change if you would like or if it is not something you want to do I guess I could always override the DefaultFilesystem. Thanks! |
This is fixed in the latest version |
Hello, I am trying to use this package with Google Cloud storage using the flysystem adapter from superbalist: https://github.com/Superbalist/laravel-google-cloud-storage.
When I try to add media
$profile->addMedia('test.png')->toMediaCollection();
the media does get persisted but I am left with the following error:The issue, as far as I can tell, is that at the point that the DefaultFilesystem calls fclose($file) the file is already closed. If I dd($file) right before the fclose() I get
Closed resource @2024
. Is this unexpected behaviour that superbalist's google cloud adapter would have already closed the file?The text was updated successfully, but these errors were encountered: