Copied to clipboard

Flag this post as spam?

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


  • pat 124 posts 346 karma points
    Jun 11, 2014 @ 16:33
    pat
    0

    how to link download documents in a root folder of website

    hi all, I wanted to upload some files to a folder (not media folder) in root directory of my web site and then in a umbraco page list them so visitors can download them.

    I dont need to upload files in to media folder as these always shows with folder with number on it (e.g. mywebsite.com/media/11234/mysoftkit.exe)

    I need to avoid media/11234 part and give human readable name 

    i have created folder on root directory of the web site and created c# usercontrol to list files from that and generate link like mywebsite.com/mydownloads/mysoftkit.exe but this gives page not available error

     

    please advice how to approach this in practice....

     

     

     

  • Dr. Sugus 26 posts 101 karma points
    Jun 12, 2014 @ 17:55
    Dr. Sugus
    0

    Hi pat

    Did you add the name of your own media folder to the web.config, in the <add key="umbracoReservedPaths"> section? Otherwise, Umbraco will try and resolve the uri to an Umbraco node.

Please Sign in or register to post replies

Write your reply to:

Draft