Provide support for image upload in media library (as it is now in core)

Created on 12 September 2023, over 1 year ago
Updated 16 January 2024, 11 months ago

Problem/Motivation

This module is really useful however currently alt text suggestions do not work for images uploaded via a media gallery widget, as this becomes more and more common (with the media gallery widget now added in core) this makes the "suggestion" less useful.

Steps to reproduce

1. Add a media field
2. Select the media gallery widget type
3. Enable the auto alter module and edit settings to set API keys and enable "Suggestion"
4. We would then anticipate that the alt text field would contain the image description after the image is uploaded
5. The alt text field will not contain the description

Proposed resolution

Alter the form_alter hook to handle the media_library upload form.

Remaining tasks

Attached is an issue fork with the proposed changes, alternatively if this is beyond the scope of this project, perhaps a sub-module for handling media_gallery may be another possible route.

✨ Feature request
Status

Fixed

Version

2.0

Component

Code

Created by

πŸ‡¬πŸ‡§United Kingdom andy_w

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

Merge Requests

Comments & Activities

Production build 0.71.5 2024