Prevent duplicate entries in civicrm_entity_file
Steps to replicate:
- Enable CiviCase
- Create a new Case.
- Edit any Case Activity >> add an attachment >> Save
- Reopen the Edit Activity form and simply save.
DB result: There will duplicate entries in civicrm_entity_file