Broken Images on webform results page, in email body sent on submission and also in the submission results pdf generated for sites with CDN enabled.

Created on 27 January 2022, almost 3 years ago
Updated 31 October 2024, 23 days ago

Problem/Motivation

Images(serving from Public directory) are not rendering on webform results page, in email body sent on submission and also in the submission results pdf generated for sites with CDN enabled.

Steps to reproduce

In your webform, add an Image file field and set the File upload destination to Public. (This issue is not observed for Private images)
Upload an image and submit the webform. Here are my obersrvations:

A site w/o the CDN:

Here, the images are rendered as expected. They are even clickable, which on click will open that image.

<a href="https://mysite.in/sites/default/files/webform/sites/76/demo3.png" class="webform-image-file-link"><img class="webform-image-file js-webform-tooltip-link" alt="demo3.png" title="demo3.png" src="https://mysite.in/sites/default/files/webform/sites/76/demo3.png" typeof="foaf:Image"></a>

A site with CDN enabled:

Here, the images are broken. But they are clickable, which on click will open that image as expected.

<a href="https://d23ynomj6u3eig.cloudfront.net/sites/default/files/webform/sites/108229/image_9.jpg" class="webform-image-file-link"><img class="webform-image-file js-webform-tooltip-link" alt="image_9.jpg" title="image_9.jpg" src="https://mylivesite.inhttps://d23ynomj6u3eig.cloudfront.net/sites/default/files/webform/sites/108229/image_9.jpg" typeof="foaf:Image"></a>

🐛 Bug report
Status

Fixed

Version

6.1

Component

Code

Created by

🇮🇳India ankithashetty Karnataka, India

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.

Production build 0.71.5 2024