Copied to clipboard

Flag this post as spam?

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

  • Thomas G 1 post 71 karma points
    Oct 26, 2020 @ 11:53
    Thomas G

    Hosting large installer files in Umbraco

    Hi All,

    We need to host installers for the software we produce in the umbraco site we are building that will be available for download, but the installers are 1GB+ and the azure file system provider throws a system out of memory exception when uploading. Is there any way we can upload the large files directly to the azure blob storage and then link then create a media item with that file assocated with it. The media node will have other properties that need to be filled in, version info, etc. Surely other Umbraco sites have hosted large installer files in the past, but how to make it work?

  • Chris Evans 137 posts 353 karma points c-trib
    Oct 27, 2020 @ 02:28
    Chris Evans

    If you're hosting the installers in Azure Storage containers, and you're comfortable uploading them directly to the blob storage without using the Umbraco media upload, you could just link to them directly by their external URL.

    So, you can create a doctype in Umbraco to represent an installer file; add properties like version info and other required content; and then instead of using a media property for the file itself, you just paste in the link from the storage container into a textstring property. When you render the download link on the website, instead of getting it from a media Url you just create your own link tag using the text value as the url.

    If you're worried about people seeing the raw azure blob url you could mask it with an azure CDN endpoint or some other proxy. A CDN is probably a good idea anyways, to optimise the delivery of the large file to the end user.

Please Sign in or register to post replies

Write your reply to: