File attachments no longer accessible in Notes
Bug Description
Existing file attachments on Notes are no longer accessible through the Note UI after the standard Note page layout was simplified.
Previously, Notes had a Files tab where attached files could be viewed and downloaded.
After the layout change introduced in #25177, the Files tab was removed from standard Note layouts.
The existing attachment data was not deleted. We verified directly in the database that attachment records are still linked to Notes.
The attachment records still contain their fileId references.
The corresponding core.file records also still exist and show:
- status = UPLOADED
- deletedAt = NULL
- valid storage path
- valid size
- valid MIME type
However:
- the Files tab is no longer shown on the Note
- opening the Note does not attempt to load the attachments
- when editing the Note record page layout, the Files widget is not offered, so the removed functionality cannot simply be restored through the layout editor
As a result, files that still exist and are linked correctly in Twenty's data model are no longer reachable through the normal Note UI.
Expected behavior
Existing Note attachments should remain accessible after an upgrade.
If the standard Note layout no longer includes a Files tab by default, users should at least be able to add a Files widget back through the record page layout editor.
Removing the default Files tab should not make existing attachments effectively inaccessible.
Technical inputs
The regression appears related to #25177.
That migration explicitly removes the Files tab from standard Note and Task layouts.
The attachment relation itself still exists in the data.
Twenty's frontend associates the Files widget with the attachments relation.
Despite existing Note attachment records, the Files widget is not offered in the Note layout editor.
This means the layout migration removed the normal UI path to data that still exists.
Environment:
Twenty: 2.40.2
Deployment: self-hosted / Docker ComposeSource: twentyhq/twenty