Skip to content
New issue

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

Create asset folders from path #485

Tam opened this Issue Mar 8, 2019 · 1 comment


None yet
2 participants
Copy link

Tam commented Mar 8, 2019


I'm trying to import assets from an old Craft 2 site to a new Craft 3 site. I'm passing the folder path with each asset as Parent-Folder/Sub-Folder/, but the assets are all imported at the volume root.

Do the folders need to exist before hand, or will it only work with a single folder name? I assume Feed Me doesn't create the folders automatically?

Steps to reproduce

  1. Import assets, passing a folder path to the folder field.

Additional info

  • Plugin version: 3.0.4
  • Craft version: 3.1.16

This comment has been minimized.

Copy link

engram-design commented Mar 9, 2019

So just to clarify, is your feed importing assets (only), or are they importing entries and assets, using an asset field?

If the latter, you can specify the folder through the Location options for the field. Feed Me will look at this value, and if you're suppling a value in there (static or dynamic), it'll sort out where to put the asset.

If you're importing assets, using Feed Me Pro - you can set the folder in the field mapping step, by either selecting a node in your feed that contains the folder name (just the folder name), or select a default folder from the list provided.

But - to answer your question, it looks like we don't create the folders if they don't exist. I've added this as an option in 3.1.15

The reason that we don't assume the path in your feed should equate to how its structured in Craft is that there's such a wide variety of formats to cater for. If you're trying to upload assets from a remote URL, should we create folders based on the URL path? Similarly for local assets as well.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.