The core plugin removes unused files from the members' folder on profile update.
The "This file has been removed." notice is displayed instead of the vcard.vcf file once the profile is updated.
We have to use the um_can_remove_uploaded_file hook to prevent removing a file.
I added a code that blocks removing the vcard.vcf file and related image file.
@champsupertramp please review and merge these changes.
Thank you
The core plugin removes unused files from the members' folder on profile update.
The "This file has been removed." notice is displayed instead of the vcard.vcf file once the profile is updated.![example - This file has been removed](https://github.com/ultimatemember/Extended/assets/78854651/94190292-b60e-4b2c-ace3-e26940c873fa)
We have to use the
um_can_remove_uploaded_file
hook to prevent removing a file. I added a code that blocks removing the vcard.vcf file and related image file.@champsupertramp please review and merge these changes. Thank you