File resup incompatible with IEF

Created on 13 December 2024, 4 months ago

Problem/Motivation

File resumable upload is incompatible with the Inline Entity Form module.

When uploading you see the error:

An error occurred while uploading file <file>. Please click Upload to retry.

The problem lies in the passing of parents to the JavaScript and back to the PHP. The parents sent in the original request are different than the parents sent by the AJAX.

Steps to reproduce

1. Create a new site
2. enabled IEF, media, and file_resup
3. change media document to use file_resup
4. create a new node content type ("test") that has an entity reference to the media document
5. set the form field to IEF complex.
6. try to create a new "test" node entity using the above and you'll see the following error:

If you se the form field to IEF simple it works, however IEF simple has a problem with required fields as documented in πŸ› Required fields make an optional IEF (erroneously) required Needs work and that fix doesn't work for us.

πŸ› Bug report
Status

Active

Version

2.0

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States douggreen Winchester, VA

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