- πΊπΈUnited States devkinetic
Ran into this today, basically, you cannot use subfolders within the images directory. The logic for the file creation could stand to be updated, and normalized with the new file system and file repository services.
Issue
When importing a file field with a complex path in the filename arg, the file processor is not creating the directory correctly. Exemple :
- entity: media
uuid: 5e8d91e21b367
bundle: document
name: 'Doc name'
field_media_file:
- '#process':
callback: file
args:
- document
- filename: mydirectory/myfilename.pdf
Proposed solution
The easiest way to allow this is to check if the filename is a path before preparing the directory.
Active
1.0
Code
Not all content is available!
It's likely this issue predates Contrib.social: some issue and comment data are missing.
Ran into this today, basically, you cannot use subfolders within the images directory. The logic for the file creation could stand to be updated, and normalized with the new file system and file repository services.