Brandfolder assets for the image field

Created on 8 January 2025, 3 months ago

Problem/Motivation

For the info, I have found that the module currently supports the media entity reference field for using digital assets and not for the image type field so image field is not validated while expecting to work. Please confirm if we use the brandfolder assets for image field too.

Steps to reproduce

> Configure the brandfolder module accordingly.
> Set the entity browser in the widget under "Manage from display" where entity browser should be "Brandfolder".
> Try to add a brandfolder image in any image type field of a content type.
> Then, an attached error will occur in the widget section.

Proposed resolution

Is there any other configuration for image field support or this feature yet to add later?

🐛 Bug report
Status

Active

Version

6.0

Component

Code

Created by

🇮🇳India hemant-gupta New Delhi

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

Comments & Activities

  • Issue created by @hemant-gupta
  • 🇺🇸United States libgeek

    The error message that comes back when selecting an image from BrandFolder is:

    The website encountered an unexpected error. Try again later.

    TypeError: file_validate(): Argument #1 ($file) must be of type Drupal\file\FileInterface, Drupal\media\Entity\Media given, called in /var/www/html/docroot/modules/contrib/entity_browser/src/Plugin/EntityBrowser/WidgetValidation/File.php on line 31 in file_validate() (line 97 of core/modules/file/file.module).

Production build 0.71.5 2024