Webform image uploads not mapping to new image fields correctly

Created on 28 September 2020, over 4 years ago
Updated 28 April 2023, over 1 year ago

Problem/Motivation

Webform image fields mapped to node image fields are not resaved into the correct paths. This causes issues with permissions when an anonymous user tries to view the image field on the newly created node, as they don't have view access to webform upload directories.

Steps to reproduce

  • Create a webform with an image upload field
  • Create a content type with an image field with a different directory path
  • Create a a new Webform Content Creator configuration for the content type and webform, and map the image field to the webform image upload field
  • On submit new node will have image path pointing to webform image upload path, instead of content type image field path

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

🐛 Bug report
Status

Closed: works as designed

Version

1.0

Component

Miscellaneous

Created by

🇨🇦Canada occupant Canada

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 occupant,

    I tested it using @anruether reccomendations and it seems to work using public folder for the webform element, even using the webform path in content type field. If you need to change the directory and/or replicate file, I suggest that you create a new field mapping plugin (@WebformContentCreatorFieldMapping) using the most recent version in order to accomplish that.

    Best regards.

Production build 0.71.5 2024