We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
With this package on composer.json:
"creocoder/yii2-flysystem": "^1.1", [1.1.0] "league/flysystem-aws-s3-v3": "~1.0", [1.0.30]
Then, In Yii2 config:
'components' => [ 'aws' => [ 'class' => 'creocoder\flysystem\AwsS3Filesystem', 'key' => getenv('SPACES_DO_KEY'), 'secret' => getenv('SPACES_DO_SECRET'), 'bucket' => 'my-bucket-in-digitalocean', 'region' => 'sgp1', 'version' => 'latest', 'endpoint' => 'https://sgp1.digitaloceanspaces.com', ], ]
Works, If we doing this:
$contents = Yii::$app->aws->listContents("/"); die(Html::tag('pre', VarDumper::dumpAsString($contents))); Result: [ 0 => [ 'path' => 'delivery_order' 'dirname' => '' 'basename' => 'delivery_order' 'filename' => 'delivery_order' 'type' => 'dir' ] 1 => [ 'path' => 'goods' 'dirname' => '' 'basename' => 'goods' 'filename' => 'goods' 'type' => 'dir' ] ]
But not works for:
$contents = Yii::$app->aws->listContents("/delivery_order"); die(Html::tag('pre', VarDumper::dumpAsString($contents))); Result: [ ] // an empty array
Please advice.
The text was updated successfully, but these errors were encountered:
The current version of league/flysystem-aws-s3-v3 is 3.10.3 - I'd recommend to give that a try.
league/flysystem-aws-s3-v3
3.10.3
Sorry, something went wrong.
No branches or pull requests
With this package on composer.json:
Then, In Yii2 config:
Works, If we doing this:
But not works for:
Please advice.
The text was updated successfully, but these errors were encountered: