Images and Files are not populating their respective node entity reference fields

Created on 30 March 2021, about 4 years ago
Updated 28 April 2023, almost 2 years ago

Problem/Motivation

I am not getting images or files mapped correctly. I've set the fields to use the public file system and made sure they're mapped correctly but the new node doesn't get any content for those fields. The fields are entity references to media and files. I can see from the submission page the images/pdfs were submitted, but they never make it to the node. No errors in the console and no errors in the log. I updated to v2, ran drush updb, removed the webform encrypt module, and made sure all fields were still mapped. No change.

πŸ› Bug report
Status

Needs work

Version

3.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.

  • πŸ‡΅πŸ‡ΉPortugal joaomarques736

    Hello cebronix,

    I tested using the mappings Image file (Webform) -> Image (Content Type) and File (Webform) -> File (Content Type), using the public folder, and it seems to work properly. Maybe you need to implement new field mapping plugins in order to achieve mappings for different field types (for example, mapping Webform image file with content type media entity reference).

    Best regards.

  • Status changed to Closed: works as designed almost 2 years ago
  • πŸ‡ΊπŸ‡ΈUnited States loopy1492

    Note it is a bad idea to allow anonymous users to upload to the public file system.

    We'll try to write a hook for this because we really can't allow the alternative.

Production build 0.71.5 2024