HISE Logo Forum
    • Categories
    • Register
    • Login

    How to make simple Downloader with HISE

    Scheduled Pinned Locked Moved General Questions
    10 Posts 4 Posters 446 Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • DabDabD
      DabDab
      last edited by

      Hello every one. Hope you are doing marvelously well.
      I want to create a simple downloader that will download the VST or Componnet file from Mediafire or Google Drive or DropBox.
      I don't have dedicated Website/Server (Wordpress etc.) How can I connect and attach external link to download ?

      Bollywood Music Producer and Trance Producer.

      1 Reply Last reply Reply Quote 0
      • DabDabD
        DabDab
        last edited by

        @d-healey @orange @Lindon
        help me..

        const var Button1 = Content.getComponent("Button1");
        const var downloader = FileSystem.Downloads;
        inline function onButton1Control(component, value)
        {
        	Server.setBaseURL("https://jumpshare.com/");
        	Server.downloadFile("https://jumpshare.com/v/cwd5wf53wbwePoief9YF", {}, downloader, function (){});
        };
        Content.getComponent("Button1").setControlCallback(onButton1Control);
        
        

        Bollywood Music Producer and Trance Producer.

        DanHD LindonL 2 Replies Last reply Reply Quote 0
        • DanHD
          DanH @DabDab
          last edited by

          @DabDab I made one of these but it didn't play nicely with my cloud server / work well. I abandoned it. Sometimes it would download, other times it would stop but say completed...

          DHPlugins / DC Breaks | Artist / Producer / DJ / Developer
          https://dhplugins.com/ | https://dcbreaks.com/
          London, UK

          DabDabD 1 Reply Last reply Reply Quote 0
          • DabDabD
            DabDab @DanH
            last edited by

            @DanH Oho 😞 ... Is it possible to make something file downloader with JUCE ? I can make something similar with QT but JUCE or HISE would be great.

            Bollywood Music Producer and Trance Producer.

            1 Reply Last reply Reply Quote 0
            • LindonL
              Lindon @DabDab
              last edited by

              @DabDab said in How to make simple Downloader with HISE:

              Server.setBaseURL("https://jumpshare.com/");
              Server.downloadFile("https://jumpshare.com/v/cwd5wf53wbwePoief9YF", {}, downloader, function (){});

              well check the documentation:

              Server.downloadFile(String subURL, var parameters, var targetFile, var callback)

              so at the very least yours should say:

              Server.downloadFile("/v/cwd5wf53wbwePoief9YF", {}, downloader, function (){});

              HISE Development for hire.
              www.channelrobot.com

              DabDabD 1 Reply Last reply Reply Quote 1
              • DabDabD
                DabDab @Lindon
                last edited by

                @Lindon Nice nice... :)

                Bollywood Music Producer and Trance Producer.

                1 Reply Last reply Reply Quote 0
                • Tania GhoshT
                  Tania Ghosh
                  last edited by

                  @DabDab Nope !! Actually you need Server/File Hosting address. Where the file is actually located. here is the Code. It should work at your end.

                  const var Download = Content.getComponent("Download");
                  const var Browse = Content.getComponent("Browse");
                  const var downloader = FileSystem.Downloads;
                  Server.setBaseURL("https://d2i59u88dkw7mq.cloudfront.net/");
                  const var target = FileSystem.getFolder(FileSystem.Downloads).getChildFile("Old Cassette Record.zip");
                  inline function onDownloadControl(component, value)
                  {
                  	if(value)
                  	Server.downloadFile("/53q7%2Ffile%2Fbc200a39c540f4390cc85d2bda7d51be_Old+Cassette+Record.zip?response-content-disposition=attachment%3Bfilename%3D%22Old%20Cassette%20Record.zip%22%3B&response-content-encoding=binary&Expires=1634634819&Signature=b5gjAhq49AjHnK9BvF7VGN1yh-nckl2fvcvBL1arUuYe8enGfGbUlMGbxpEz7KwRbF0L-WTXJj3mtjRCrdPsy3EaVtnsEtOMijuppoDqrpSNXrdh5SKkziM2oLQthSddGpho6nZMJTe3TPmxN4XCV2T~jhRW8QyYzTf7YSmMBE3Em6txoKdec248MclvJSo9XH3X91WmmRYJQa6CgLjBs3iz7Mwxv6GgQztxSYCEf64Kg6y3-DIciRqAXssUu5aNONc~U8bDRcmLJmzHAlxWnwnX9NX~mSoa9ho8aW90WERs46ghJi82PQw~SIcRGG-6f5reOw4T7SDDgcAYINQ57w__&Key-Pair-Id=APKAJT5WQLLEOADKLHBQ", {}, target, function (){});
                  };
                  Content.getComponent("Download").setControlCallback(onDownloadControl);
                  
                  /// Browse downloaded files
                  
                  const var look= FileSystem.Downloads;
                  
                  
                  inline function onBrowseControl(component, value)
                  {
                  	if (value)
                  	    FileSystem.browse(look, false, "*.zip", function (){});
                  };
                  
                  Content.getComponent("Browse").setControlCallback(onBrowseControl);
                  

                  Tania Ghosh

                  DabDabD 1 Reply Last reply Reply Quote 0
                  • DabDabD
                    DabDab @Tania Ghosh
                    last edited by

                    @Tania-Ghosh Thanks Man :)

                    Bollywood Music Producer and Trance Producer.

                    Tania GhoshT 1 Reply Last reply Reply Quote 0
                    • Tania GhoshT
                      Tania Ghosh @DabDab
                      last edited by

                      Thanks Man 🙂

                      @DabDab :astonished_face: :beaming_face_with_smiling_eyes:

                      I am not MAN .. I am Woman

                      Tania Ghosh

                      DabDabD 1 Reply Last reply Reply Quote 4
                      • DabDabD
                        DabDab @Tania Ghosh
                        last edited by

                        @Tania-Ghosh OOOPS!!

                        Bollywood Music Producer and Trance Producer.

                        1 Reply Last reply Reply Quote 0
                        • First post
                          Last post

                        46

                        Online

                        1.7k

                        Users

                        11.7k

                        Topics

                        102.1k

                        Posts