Skip to content

Fix populating file when path is assets folder#38

Open
satrun77 wants to merge 1 commit intosilverstripe:masterfrom
satrun77:bugfix/file-in-root-path
Open

Fix populating file when path is assets folder#38
satrun77 wants to merge 1 commit intosilverstripe:masterfrom
satrun77:bugfix/file-in-root-path

Conversation

@satrun77
Copy link
Copy Markdown
Contributor

When you have a YML file with the following setup

SilverStripe\Assets\Image:
  image1:
    Filename: image1.jpg
    PopulateFileFrom: app/fixtures/assets/image1.jpg

The filename does not specify a folder Filename: image1.jpg

The file is created in the assets folder under a directory with hash name, ie. 61a1b816b08b8/image1.jpg

@satrun77 satrun77 force-pushed the bugfix/file-in-root-path branch 2 times, most recently from 4fffea4 to 218ad4f Compare November 27, 2021 06:12
@satrun77 satrun77 force-pushed the bugfix/file-in-root-path branch from 218ad4f to 9a6507c Compare April 28, 2022 22:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant