Cannot access uploaded file when in private://

Created on 18 June 2025, 7 days ago

Relevant aspects:

FileUrlItem::schema() -> the 'foreign keys' are removed a this affects file_field_find_file_reference_column()

In this code block, the if condition will be always FALSE with file_url fields:

              if ($file->id() == $item->{$field_column}) {
                $references[$file->id()][$age][$field_name][$entity_type_id][$entity->id()] = $entity;
                break;
              }

from file_get_file_references() will fail

🐛 Bug report
Status

Active

Version

2.0

Component

Code

Created by

🇷🇴Romania claudiu.cristea Arad 🇷🇴

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

Comments & Activities

Production build 0.71.5 2024