I uploaded some files to Media, created a downloadable link in View like so:
@{
var linkToMedia = Model.Value<Link>("linkToMedia");
if (linkToMedia != null)
{
<a download href="@linkToMedia.Url">@linkToMedia.Name</a>
}
}
While this works well for common file extensions such as pdf and doc, it fails to download files such as rvt.
We are using .NET Core and hosting our website on IIS if that matters. I already tried adding said extension to IIS but did not help.
Is Umbraco perhaps blocking uncommon file extensions? Or do I need to explicitly allow extensions?
P.S. Our rvt files weigh over 40MB so I already increased the size limit of uploaded files in Media via IIS but when I click the uploaded file in Media, navigating to https://localhost:44310/media/x0dcaaju/test.rvt
it returns Status Code: 404; Not Found.
Problem with downloading certain files from Media
Hello,
I uploaded some files to Media, created a downloadable link in View like so:
While this works well for common file extensions such as pdf and doc, it fails to download files such as rvt.
We are using .NET Core and hosting our website on IIS if that matters. I already tried adding said extension to IIS but did not help.
Is Umbraco perhaps blocking uncommon file extensions? Or do I need to explicitly allow extensions?
P.S. Our rvt files weigh over 40MB so I already increased the size limit of uploaded files in Media via IIS but when I click the uploaded file in Media, navigating to
https://localhost:44310/media/x0dcaaju/test.rvt
it returnsStatus Code: 404; Not Found
.Hi,
I have the same problem in umbraco 12. it is not downloading .app file
got you fixed it?
/Yasir
I think it missing mime type in iis, you can add it manually in web.config or IIS manager
You probably need to add the mime type to allow it to be downloaded
is working on a reply...