Copied to clipboard

Flag this post as spam?

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


  • Elsa Schimak 7 posts 77 karma points
    May 31, 2017 @ 15:50
    Elsa Schimak
    0

    Hosting 3d party html in umbraco

    Dear all,

    we are developing a js - web application (with TypeScript) which should be integrated into a website based on Umbraco CMS. We now got told that uploading our js/html/css & images to Umbraco CMS system is not possible or at least very very complicated and therefore we should be hosting the data externally where we can upload via ftp and than only link to the data.

    As I have never used Umbraco before I was wondering if this is really a problem. Something I can't really beliefe.

    Thankful for any response

    Elsa

  • John Bergman 460 posts 1066 karma points
    May 31, 2017 @ 18:40
    John Bergman
    0

    I cant imagine that is the case. You can access and add scripts from the backoffice as needed. The same is true if you want custom pages. Further, you add a RichText Editor, you can almost copy/paste html and it just works.

  • Elsa Schimak 7 posts 77 karma points
    May 31, 2017 @ 19:05
    Elsa Schimak
    0

    Hi thanks for the swift replay. I have been watching umbraco.tv for the last hour. And I think I know how to adapt my codepackage so that I could include it as documentType...

    However this is some work which I wouldn't like to do.

    The complete web-application is in a folder (with subfolders including the js / css / images / a json configuration file and an index.html) so where would I upload the folder two in Umbraco environment to be able to set a link to the index.html from where the rest is loaded based on relative paths?

    Couldn't I simply upload it into Media Folder?

    Thanks Elsa

  • Søren Kottal 530 posts 3521 karma points MVP 2x c-trib
    May 31, 2017 @ 19:38
    Søren Kottal
    0

    Hi Elsa

    You can upload all the files you want to the media section. But Umbraco by default disallows a number of file types. This can be set in /config/umbracoSettings.config.

    Check out the docs: https://our.umbraco.org/Documentation/Reference/Config/umbracoSettings/

     <!-- These file types will not be allowed to be uploaded via the upload control for media and content -->
    <disallowedUploadFiles>ashx,aspx,ascx,config,cshtml,vbhtml,asmx,air,axd,swf,xml,xhtml,html,htm,svg,php,htaccess</disallowedUploadFiles>
    
  • Elsa Schimak 7 posts 77 karma points
    May 31, 2017 @ 19:59
    Elsa Schimak
    0

    Thanks again, getting closer, However the content is hosted via umbraco cloud, can I change the settings there as well and only for one specific user?

  • Søren Kottal 530 posts 3521 karma points MVP 2x c-trib
    Jun 01, 2017 @ 06:55
    Søren Kottal
    0

    Yes, you can either edit the file through the kudu portal (http://yourproject.scm.s1.umbraco.io), or by installing the package Config Tree.

    The setting is global though, so all users will have access to upload.

    You could also just upload the necessary files through Kudu, you have full access to the filesystem there.

  • Elsa Schimak 7 posts 77 karma points
    Jun 01, 2017 @ 08:30
    Elsa Schimak
    0

    Hello Soren,

    that link was very helpful. I figured out that you can actually upload files there pretty easy, directly into the wwwroot directory and also access them via the web from there. Exactly what I needed.

    Just wondering. Will Umbraco CMS remove a folder that I have manually added there when updating / deploying the website?

    Thanks so much

    Elsa

  • Søren Kottal 530 posts 3521 karma points MVP 2x c-trib
    Jun 01, 2017 @ 08:55
    Søren Kottal
    0

    It should automatically add the files to your git repository (at least thats what I have experienced :)), so you will get them when you pull, and they wont disappear unless you delete them yourself.

  • Elsa Schimak 7 posts 77 karma points
    Jun 01, 2017 @ 09:12
    Elsa Schimak
    0

    Hi soren,

    thanks again. Nearly there I have uploaded to wwwroot (chrome works edge not....). now the problem is how to set file permissions so that I can access the index.html contained from the web...

  • This forum is in read-only mode while we transition to the new forum.

    You can continue this topic on the new forum by tapping the "Continue discussion" link below.

Please Sign in or register to post replies