Copied to clipboard

Flag this post as spam?

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


  • Arun 141 posts 404 karma points
    Jan 18, 2021 @ 07:50
    Arun
    0

    Error with PDF files in Umbraco Media

    Hi all,
    I had set up a page with certain PDF files that are stored in Umbraco media. Everything was working as expected, but now I can see certain files are missing and leading to a 404 page.
    I tried to upload the file again and still the issue exists.!
    I was able to save the file as in the screenshot enter image description here

    but if I click the media URL then it says No umbraco document matches the url '/media/2156/test-file.pdf/'. Does anybody know the reason?

    Any help is appreciated

  • Alex Skrypnyk 6163 posts 24143 karma points MVP 8x admin c-trib
    Jan 18, 2021 @ 17:32
    Alex Skrypnyk
    0

    Hi Arun

    Can you check the disk and be sure that the files are there? Umbraco can't remove files so something happened with files on the disk or somebody removed them.

    Are you using Azure blob?

    Thanks,

    Alex

  • Arun 141 posts 404 karma points
    Jan 19, 2021 @ 07:59
    Arun
    101

    Thanks Alex for your time :)
    The error was due to certain rules's given in web.config.
    For better SEO they have added some rules for a trailing slash on URL.
    After excluding PDF from that, the issue got resolved

Please Sign in or register to post replies

Write your reply to:

Draft