Created on 8 April 2020, over 4 years ago
Updated 21 February 2023, almost 2 years ago

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.

πŸ› Bug report
Status

Active

Version

1.0

Component

Code

Created by

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

  • πŸ‡ΊπŸ‡Έ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.

Production build 0.71.5 2024