Unable to add image from from to node

Created on 18 June 2024, 9 days ago
Updated 22 June 2024, 5 days ago

Problem/Motivation

I have an image field, want to add to a node when the form is submitted using handler. There are 5 fields showed up for this node image field. It seems the first one is key (Column: File ID - Type: integer).

I first tried to use direct field match between the form image to node image(the first field), didn't work.

I then tried to use token, but unable to find any token, So I tried:

[webform_submission:values:image:id]
[webform_submission:values:image:fid]
[webform_submission:values:image:entity:fid]
[webform_submission:values:image:entity:id]

none works. Checked the value of these token, only [webform_submission:values:image:fid] shows the path of the file, others are just empty.

The images were truly submitted. I used the value in submitted result (an integer) and put it to handler. It successfully saved that image to node. So, the issue is what token should be used for (Column: File ID - Type: integer)

Thank you for your help!

πŸ› Bug report
Status

Postponed: needs info

Version

6.2

Component

Code

Created by

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

Comments & Activities

  • Issue created by @sdsc
  • Status changed to Postponed: needs info 9 days ago
  • πŸ‡ΊπŸ‡ΈUnited States cilefen

    Add a "Steps to Reproduce" section to the issue summary explaining exactly how to recreate this bug. Include the YAML of an example form too.

  • Steps to Reproduce

    1. add an image field (allow multiple images) on webform.
    2. create a content type with an image field (allow multiple images)
    3. on webform settings, add a handler to create a new content and select the content type with the image field
    4. On the handler set up, for the image field, it says "(Column: File ID - Type: integer)", what should be put there?

Production build 0.69.0 2024