1up-lab / OneupFlysystemBundle

A Flysystem integration for your Symfony projects.
MIT License
630 stars 119 forks source link

Argument 2 passed to League\Flysystem\AwsS3V3\AwsS3V3Adapter::__construct() must be of the type string, null given, called in /home/habibun/Projects/test/vich-uploader-bundle/var/cache/dev/ContainerPOzBFIh/getOneupFlysystem_AwsFilesystemFilesystemService.php on line 27 #265

Closed habibun closed 2 years ago

habibun commented 2 years ago

Bug Report

trying to implement AwsS3v3

Symfony Version: 4.4.39 PHP Version: 7.4.28 "league/flysystem-aws-s3-v3": "^2.4", "oneup/flysystem-bundle": "^4.4",

Summary

Argument 2 passed to League\Flysystem\AwsS3V3\AwsS3V3Adapter::__construct() must be of the type string, null given, called in /home/habibun/Projects/test/vich-uploader-bundle/var/cache/dev/ContainerPOzBFIh/getOneupFlysystem_AwsFilesystemFilesystemService.php on line 27

How to reproduce

git clone git@github.com:habibun/vich-uploader-bundle.git composer install run local server browse: /product/new [input value and submit]

habibun commented 2 years ago

Issue solved:

        aws_adapter:
            awss3v3:
                client: aws.s3_client
                bucket: ~
                prefix: ~
Configuration bucket and prefix was empty, that's why error was showing
aasuncion-fol commented 5 months ago

@habibun which file did you put that solution? Thanks

habibun commented 5 months ago

@aasuncion-fol https://github.com/1up-lab/OneupFlysystemBundle/blob/main/doc/adapter_awss3.md