I'm running Umbraco 13, and in my wwwroot folder I have 2 files, MyProgram.exe and MyImage.iso. If I try to navigate to ~/MyProgram.exe, it triggers a download, which is what I want. When trying to navigate to the ISO however, it throws a 404 page.
I have both of these mimeMaps configured the same in web.config and IIS, so I'm very confused as to why EXE works, but not ISO.
Is there some setting for types in the backoffice? Is it some implicit thing from Umbraco?
I belive it mime tipe in asp.net core, try add this file to your project
public class CoreComposer : IComposer
{
public void Compose(IUmbracoBuilder builder)
{
var contentTypeProvider = new FileExtensionContentTypeProvider();
if (!contentTypeProvider.Mappings.ContainsKey(".iso"))
{
contentTypeProvider.Mappings.Add(".iso", "application/octet-stream");
}
builder.Services.Configure<StaticFileOptions>(options => options.ContentTypeProvider = contentTypeProvider);
}
}
}
Umbraco treating certain file types differently
Hello,
I'm running Umbraco 13, and in my wwwroot folder I have 2 files,
MyProgram.exe
andMyImage.iso
. If I try to navigate to ~/MyProgram.exe, it triggers a download, which is what I want. When trying to navigate to the ISO however, it throws a 404 page.I have both of these mimeMaps configured the same in web.config and IIS, so I'm very confused as to why EXE works, but not ISO.
Is there some setting for types in the backoffice? Is it some implicit thing from Umbraco?
Any pointers are greatly appreciated!
I belive it mime tipe in asp.net core, try add this file to your project
Works now, thanks a bunch!
is working on a reply...