Open odilov-sh opened 3 years ago
See #43
Is there any reason, that this issue still exist?
Change lines 47 through 51 with following code
if (is_string($source)) {
$source = Psr7\Utils::tryFopen($source, 'r+');
}
return Psr7\Utils::streamFor($source);
in UploadCommandHandler file. It was fixed, but again it has reappeared breaking production systems, can someone fix it for good?
I am trying to upload file to amazon, but I got this error
Call to undefined function GuzzleHttp\Psr7\try_fopen()
vendor\frostealth\yii2-aws-s3\src\handlers\UploadCommandHandler.php line 48
My code:
$result = $s3->commands()->upload('e:\Video\short videos\The Small Business Story – short video no captions.mp4', '/uplod/29/10/small.mp4')->withAcl('private')->execute();
How can I fix that?