# AWS-S3 Filesystem upload in falschen Ordner

**URL:** <https://forum.shopware.com/t/aws-s3-filesystem-upload-in-falschen-ordner/102238>\
**Category:** Programmierung\
**Created:** [11. Dezember 2023 um 06:31 UTC](https://forum.shopware.com/t/aws-s3-filesystem-upload-in-falschen-ordner/102238 "2023-12-11T06:31:31Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![AlexGalax](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.shopware.com/alexgalax/32/9925_2.png) [@AlexGalax](https://forum.shopware.com/u/AlexGalax)\
**Post date:** [11. Dezember 2023 um 06:31 UTC](https://forum.shopware.com/t/aws-s3-filesystem-upload-in-falschen-ordner/102238/1 "2023-12-11T06:31:31Z")

</div>

Hallo,

seit dem Update auf 6.5.7.2 werden Dateien nicht mehr in den Root-Ordner geladen. Ich habe auch den Adapter aktualisiert:  
`composer require league/flysystem-async-aws-s3`

Neuerdings wird alles in einen neuen Unterordner `/` hochgeladen. Also anstelle von `media/12/34/56/image.jpg`, ist die neue Location `/media/12/34/56/image.jpg` wobei der erste Slash der neue Ordername ist.

`Buckets` \> `my-bucket` \> / \> `media/` \> `12/` \> `34/` \> `56/` \> `image.png`

 ![1702275581704](https://europe1.discourse-cdn.com/flex013/uploads/shopware/original/3X/c/2/c281e790cdf5f837b29a5c7b2c416967df8cc682.png)

Das ist die Konfiguration:

```yaml
# config/package/shopware.yaml
shopware:
    filesystem:
        public:
            url: "%env(AWS_URL)%"
            type: "amazon-s3"
            config:
                bucket: "%env(AWS_BUCKET)%"
                region: "%env(AWS_REGION)%"
                endpoint: "%env(AWS_DOMAIN)%"
                root: ""
                options:
                    visibility: "public"
                credentials:
                    key: "%env(AWS_ACCESS_KEY_ID)%"
                    secret: "%env(AWS_SECRET_ACCESS_KEY)%"

```

Den `root`-Parameter ändern bringt auch nichts, egal was ich da angebe, es wird immmer in `/` hochgeladen. Ich weiß wirklich nicht woran das liegen könnte und das ist echt nervig gerade, weil niemand etwas hochladen kann.
