Skip to content

Assets are not relocated after entry has been saved #9619

@owldesign

Description

@owldesign

Description

My assets are not being moved out of Temporary Uploads folder after the element has been saved and a dynamic folder based on the {slug} has been created on the volume.

I tried this on all 3 of these: DigitalOcean Spaces, Amazon S3 and Local Folder. All created the dynamic folder based on entry {slug} but assets never relocated after save. Looking at the entry page (frontend) I am unable to get the asset urls to display them. However, they do display in the CP edit entry page.

Note: At some point I played around with changing the Temp Uploads Location setting and I noticed that assets got relocated to the correct dynamic folders. However, the issue is back when I start creating new entries.

Steps to reproduce

  1. My asset fields have a dynamic path that create a subfolder based on "{slug}"

CleanShot 2021-07-21 at 16 28 28@2x

  1. Those dynamic folders get created based on the {slug} after the element is saved.

CleanShot 2021-07-21 at 16 28 56@2x

  1. Assets never move out of Temp location to the appropriate final folder.

CleanShot 2021-07-21 at 16 29 43@2x

Additional info

  • Craft version: 3.7.4
  • PHP version: 8.0.8

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions