- Issue created by @longwave
As per the docs you have to use an pseudo field to generate complex filenames, in the file migrations I have done this sort of pattern is fairly common:
_file_destination:
plugin: concat
source:
- constants/file_destination
- constants/directory_separator
- '@text_field_1'
- constants/directory_separator
- '@text_field_2'
- constants/directory_separator
# Now we can use our pseudo temp field as a destination value
field_file:
plugin: file_import
source: file
destination: '@_file_destination'
uid: @uid
skip_on_missing_source: true
If destination
is an array, we could treat it as a process pipeline, and make this more readable?
field_file:
plugin: file_import
source: file
destination:
plugin: concat
source:
- constants/file_destination
- constants/directory_separator
- '@text_field_1'
- constants/directory_separator
- '@text_field_2'
- constants/directory_separator
uid: @uid
skip_on_missing_source: true
Active
3.0
Code