Project

General

Profile

Actions

Bug #97209

closed

Problem when try to upload picture into IRRE element

Added by taieb rekik about 2 years ago. Updated almost 2 years ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
Backend User Interface
Target version:
-
Start date:
2022-03-18
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
11
PHP Version:
8.0
Tags:
backend,media,sys_file
Complexity:
medium
Is Regression:
No
Sprint Focus:

Description

Problem description:
Currently I have a problem when I try to upload pictures with a custom content element IRRE, the problem that I was got it is, when I upload pictures the first item I need to save full content else I'm cannot upload for the next item, looks like problem of event are not triggered or something like that.

To Reproduce my problem:
You need to have a custom content element IRRE with pictures, and just try to upload picture for first item, and next try to upload for second item without saving the full-content,
Later save the content and upload the second item and it will work.

Screenshot


Files

problem_upload_backend.png (97 KB) problem_upload_backend.png taieb rekik, 2022-03-18 10:24
Actions #1

Updated by Oliver Hader about 2 years ago

  • Status changed from New to Needs Feedback

Can you share the the TCA configuration for both image fields please?

In case you're using helper function getFileFieldTCAConfig - make sure to pass along the corresponding name of the field, e.g.

'columns' => [
  ...
  'first_field' => [
    'label' => ...,
    'config' => \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::getFileFieldTCAConfig('first_field', [ ... ]),
  ],
  'second_field' => [
    'label' => ...,
    'config' => \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::getFileFieldTCAConfig('second_field, [ ... ]),
  ],
  ...
],

Internally this uses the specific value for foreign_match_fields - which is used to separate those two fields referencing from the same database table (see https://docs.typo3.org/m/typo3/reference-tca/main/en-us/ColumnsConfig/Type/Inline/Properties/ForeignMatchFields.html for details).

Actions #2

Updated by Riccardo De Contardi almost 2 years ago

  • Status changed from Needs Feedback to Closed
  • Sprint Focus deleted (Stabilization Sprint)

No feedback since the last 90 days => closing this issue.

If you think that this is the wrong decision or experience the issue again and have more information about how to reproduce your problem, please reopen it or open a new issue with a reference to this one.

Thank you and best regards

Actions

Also available in: Atom PDF