Copied to clipboard

Flag this post as spam?

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


  • Frank Robertson 3 posts 73 karma points
    Nov 17, 2020 @ 17:33
    Frank Robertson
    0

    Attempting to overwrite a pdf in the media library returns a 500

    Hello all,

    Having an issue on a site running version 7.7.2 relating to uploading pdfs. I have no issue uploading a new pdf to the media library but attempting to overwrite an existing item by uploading a new one results in

    /umbraco/backoffice/UmbracoApi/Media/PostSave returning a 500 with the full error:

    "Message":"An error has occurred.","ExceptionMessage":"Value cannot be null.\r\nParameter name: source","ExceptionType":"System.ArgumentNullException","StackTrace":" at System.Linq.Enumerable.Where[TSource](IEnumerable1 source, Func2 predicate)\r\n at Umbraco.Core.IO.MediaFileSystem.GetThumbnails(String path)\r\n at Umbraco.Core.IO.MediaFileSystem.DeleteThumbnails(String path)

    and a console error:

    DependencyHandler.ax…t&cdv=1102377012:68 TypeError: Cannot read property 'length' of undefined at Object.getAllProps (DependencyHandler.ax…dv=1102377012:19063) at Object.reBindChangedProperties (DependencyHandler.ax…dv=1102377012:19181)

    Worth mentioning there is no other issues relating to media.

    Of course a workaround would be to simply remove the media item entirely and upload the replacement however this isn't ideal as we have multiple pdfs that need replaced.

    Any suggestions/ideas welcome

  • This forum is in read-only mode while we transition to the new forum.

    You can continue this topic on the new forum by tapping the "Continue discussion" link below.

Please Sign in or register to post replies