Hi,
I have successfully implemented two file type fields in a basic type custom module.
The upload and deletion work well and if I click on the name of files, it downloads the respective documents.
The problem is if I try to click on the “eye” for the preview: this always has the first file as an entrypoint.
I followed these two guides: https://parvezkaliya.blogspot.com/2020/01/creating-file-upload-field-for-core.html and https://www.bhea.com/blog/creating-file-upload-field-core-modulecustom-module-sugar-7-x/
Thanks for support.