Steps to reproduce:
- Create a document (note for instance).
- Attach one or more files from the Files tab.
- Do some actions, like creating a new document and attaching files to it.
=> Browse the 1st document. You get an error.
In the logs, you have:
The mechanism to clean up temporary files tracks non-temporary files.