Uploaded image for project: 'CiviCRM'
  1. CiviCRM
  2. CRM-21714

Also remove stored files when a custom field file is removed

    Details

    • Type: New Feature
    • Status: Won't Do
    • Priority: Trivial
    • Resolution: Won't Do
    • Affects Version/s: 4.7.x
    • Fix Version/s: None
    • Component/s: None
    • Labels:
      None
    • Versioning Impact:
      Minor (add functionality in backwards-compatible manner)
    • Documentation Required?:
      None
    • Funding Source:
      Needs Funding
    • Verified?:
      Yes

      Description

      As discused on https://chat.civicrm.org/civicrm/pl/hykmdoiht7b33d9fth1wrzpxqr

      When a custom field of type file is deleted, all stored files are keeped on the file system.

      I think the files should be deleted at the same time as the custom field is deleted. To avoid possible confusion with the current behavior, I would modify the custom file field removal warning message to warn about the removal of files. Something like:

      WARNING: Deleting this custom field will result in the loss of all '' data as well as the stored files. Any Profile form and listings field(s) linked with '' will also be deleted. This action cannot be undone. Do you want to continue?

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              francescbassas Francesc Bassas i Bullich
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: