Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
BastianBalthasarBux opened this issue Nov 2, 2023 · 1 comment
Open

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

BastianBalthasarBux opened this issue Nov 2, 2023 · 1 comment

Comments

@BastianBalthasarBux
Copy link

BastianBalthasarBux commented Nov 2, 2023

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

@BastianBalthasarBux
Copy link
Author

Okay, the first thing with the SaveToFileMount works with v11.0.8
But I still struggle with the uid_local file reference.

@BastianBalthasarBux BastianBalthasarBux changed the title [BUG] Breaks some functionalities of original Form [BUG] sys_file_reference:uid_local remains zero (0) Feb 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant