InvalidArgumentException - League\Flysystem\Filesystem::writeStream expects argument #2 to be a valid resource #2553
Unanswered
nirosha-jayasinghe
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I'm using my app in a
vapor
environment with S3 storage. When I try to upload a relatively large video file (more than 300MB), I'm getting this error.InvalidArgumentException - League\Flysystem\Filesystem::writeStream expects argument #2 to be a valid resource
Controller
according to the trace, it comes from
vendor/spatie/laravel-medialibrary/src/MediaCollections/Filesystem.php
line 73In here,
$storage->getDriver()->readStream($file->getKey())
returningfalse
. Files below 300MB get uploaded without a problem.Stack trace
Exception
Beta Was this translation helpful? Give feedback.
All reactions