Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Dan 15 posts 86 karma points
    May 08, 2019 @ 09:18
    Dan
    0

    I use Umbraco Members for authentication a front end of a site. A member is allowed to 'upgrade' or delete their account. The issue I have when a member does any of these, the profile image the Member uploads ends up getting deleted along with the whole directory on my storage server which results in all Member's profile pictures being deleted.

    I am just wondering what the internal process is when deleting a Member? I have had a look at the Umbraco source code in GitHub and found a DeleteMediaFiles method which looks to me deletes any files within the media folder associated with that member, however, the profile images are not saved in media folder but within a separate folder on the same level of the media folder. I am also wondering if the DeletedMediaFiles method is deleting the whole profile images directory.

    I think it is also worth mentioning when a Member 'upgrades' their account, their old account is deleted and a new account is created.

    Hope this makes sense.

    Thanks, Dan

Please Sign in or register to post replies

Write your reply to:

Draft