Adding 'required' field in image file entity prevents upload; any workaround?

Created on 6 April 2023, over 1 year ago
Updated 28 July 2024, 5 months ago

Problem/Motivation

We need to save image source info with images, and are using IMCE for some categories of images; those cases need to have the field on the file entity itself, not the media image. Using the File Entity module I added a field for this purpose. Ideally the field should be required, but the normal upload process via the "Add file" button on the Files list can't accommodate that so the upload fails. Likewise for IMCE uploads. I don't imagine there are any plans to handle this in core - short of writing a custom upload module can anyone suggest any simpler way around this problem? This is a last-minute requirement and we're short of time or I'd think about something like a rule for bugging authors, at least.

Steps to reproduce

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

Release notes snippet

πŸ’¬ Support request
Status

Closed: outdated

Version

11.0 πŸ”₯

Component
EntityΒ  β†’

Last updated about 16 hours ago

Created by

πŸ‡ΊπŸ‡ΈUnited States agerard

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.

  • Issue created by @agerard
  • Unfortunately, timely replies are unlikely for support requests in the Drupal Core issue queue. As you mentioned this need is "last-minute" I want to make that clear. You are quite a bit more likely ever to get some support in the Slack #support channel, and possibly at https://drupal.stackexchange.com, in the latter case if you write this up in the form of a question with impeccable steps to reproduce. For example you would want to specify in higher definition what you mean by this thing not working, technically, in terms of the symptoms.

    If only I knew the answer I would love to help. Good luck!

  • Status changed to Postponed: needs info over 1 year ago
  • Is there an update on this one?

  • Status changed to Closed: outdated 5 months ago
Production build 0.71.5 2024