Skip to content

[BUG] sys_file_reference:uid_local remains zero (0) #17

@BastianBalthasarBux

Description

@BastianBalthasarBux

While sending files as attachments works like a charm, two other things seem broken.

[concerned versions: the latest on TER and also the latest on github, both being installed in a TYPO3 v11]

I think, these two things are very tightly connected to each other, thus only make one ticket.

The file gets uploaded, but the setting saveToFileMount is completely ignored.
Thus it's always stored in 1:/user_upload/ ... then some folder name "form_%hash"" ...

____EDIT: above problem is resolved with v11.0.8

Remaining problem:

The SaveToDatabase Finisher for file references is broken.

When using the finisher like described in the official docu, it works like a charm without form_extended.
With this ext, the uid_local of sys_file_reference is always just '0' (zero), which breaks the connection between sys_file_reference and sys_file.
Thus I end up in having a broken file reference in DB.
Summary:

  • sys_file gets filled with correct data
  • my db-field gets filled with correct uid
  • sys_file_reference gets filled with corret data, but missing value for uid_local

I am not sure, but the error might occur in
https://github.com/WapplerSystems/form_extended/blob/release/v11/Classes/Mvc/Property/TypeConverter/UploadedFileReferenceConverter.php

Would be nice to get some info on how to fix.

Here is an example DatabaseFinisher:
https://typo3.slack.com/archives/C093RB4P9/p1698913292146829

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions