Imported Images Via CSV, But Image Missing on Edit Node

Created on 16 January 2025, 4 days ago

Problem/Motivation

Imported Images via CSV with path to image works on Content Page but is missing when Editing said Content Page

Steps to reproduce

Used this patch to create path to image: https://www.drupal.org/files/issues/2023-11-27/add_a_mapping_target_to_m... β†’

Proposed resolution

Don't have a resolution, only a question as to why when I edit the page the URL is incorrect.

For this particular upload, the URL that shows the image on the content page is:

example.com/sites/default/files/feeds/auctions/images/06-18-22/1.jpg

But when I edit the page, the missing images that show the correct alt tag information, do not show the images because they do not exist in this folder:

example.com/system/files/styles/medium/http/artifact-info%3A8888/sites/default/files/feeds/auctions/images/06-09-19/1_2.jpg.webp?itok=fHyV7p0l

How do I get both to work correctly?

Thanks.

Remaining tasks

User interface changes

API changes

Data model changes

πŸ’¬ Support request
Status

Active

Version

3.0

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States tomgrandy

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

Comments & Activities

  • Issue created by @tomgrandy
  • πŸ‡ΊπŸ‡ΈUnited States tomgrandy
  • πŸ‡³πŸ‡±Netherlands megachriz

    I'm not sure, but the url for the image on the edit page looks wrong.

    Instead of
    example.com/system/files/styles/medium/http/artifact-info%3A8888/sites/default/files/feeds/auctions/images/06-09-19/1_2.jpg.webp?itok=fHyV7p0l
    I would expect something like this to be the url:
    example.com/system/files/styles/medium/private/feeds/auctions/images/06-09-19/1_2.jpg.webp?itok=fHyV7p0l
    Or
    /sites/default/files/styles/medium/public/feeds/auctions/images/06-09-19/1_2.jpg.webp?itok=fHyV7p0l

    Perhaps it is an issue caused by ✨ Add a mapping target to media field Needs review ?

  • πŸ‡ΊπŸ‡ΈUnited States tomgrandy
Production build 0.71.5 2024