Copied to clipboard

Flag this post as spam?

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


  • Ronen Rimon 21 posts 123 karma points
    Jul 24, 2018 @ 18:51
    Ronen Rimon
    0

    hi all,

    I'm using umbraco 7.11 core and store the media on azure storage + cdn.

    everything is working fine saving and getting the images through the cdn

    I have one problem when I delete an image I get error that the image is not existing, this is the relevant part from the log file

    2018-07-23 12:34:48,103 [P11020/D31/T13] INFO Domain.Concrete.UmbMemberRepository - deleting image 2694

    2018-07-23 12:34:48,103 [P11020/D31/T13] INFO Domain.Concrete.UmbMemberRepository - deleting image 79cddc0a-4093-4e38-a3aa-5e7d1acd5a42

    2018-07-23 12:34:48,212 [P11020/D31/T13] ERROR Our.Umbraco.FileSystemProviders.Azure.AzureFileSystem - Blob not found System.IO.DirectoryNotFoundException: Blob not found at '\media\1469'

    and this is the code

    LogHelper.Info(typeof(UmbMemberRepository), "deleting image " + member.ProfileImage.ImageId.ToString());

    var mediaToDelete = ApplicationContext.Current.Services.MediaService.GetById(member.ProfileImage.ImageId);

    LogHelper.Info(typeof(UmbMemberRepository), "deleting image " + mediaToDelete?.Key ?? "no image"); ApplicationContext.Current.Services.MediaService.Delete(mediaToDelete);

    why there is an attempt to get the image after it has deleted?

Please Sign in or register to post replies

Write your reply to:

Draft