Copied to clipboard

Flag this post as spam?

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


  • Anton David 5 posts 94 karma points
    Nov 21, 2023 @ 11:57
    Anton David
    0

    Cannot download certain files types (.run file) after the Upgrade to Umbraco 10

    Hi All, Recently, we upgraded Umbraco from version 8 to 10. However, following the upgrade, we've encountered an issue with downloading .run files from the website. Our IIS is version 10.

    The Umbraco logs show that the .run file is protected media and that the user has permission to download it.

    When I attempt to change the .run extension to .exe or .zip, I am able to download the file without any issues. It seems that the .run extension is being blocked, resulting in a 404 error, but I'm uncertain where this blockage is occurring.

    I have already tried the .run extension to the IIS MIME Types with the configuration as follows: Extension: .run MIME Type: application/octet-stream

    I've tested this after restarting both the IIS web app and the app pool. However, the problem persists despite these efforts.

    Any assistance on this matter would be greatly appreciated.

    Many Thanks Anton

  • Anton David 5 posts 94 karma points
    Nov 24, 2023 @ 11:07
    Anton David
    0

    This issue has been fixed by adding the following lines to the Startup.cs

    var provider = new FileExtensionContentTypeProvider();
    provider.Mappings[".run"] = "application/octet-stream";
    app.UseStaticFiles(new StaticFileOptions{
          ContentTypeProvider = provider 
    });
    

    However, after this addition, MediaProtect is broken. I guess I am missing something.

  • Anton David 5 posts 94 karma points
    Nov 28, 2023 @ 10:20
    Anton David
    100

    If anyone encounters a similar problem, place the code after

    app.UseUmbraco() {...
    ...
    } 
    

    section in the Startup.cs file.

    Thanks Anton

Please Sign in or register to post replies

Write your reply to:

Draft