HISE Logo Forum
    • Categories
    • Register
    • Login

    How can I download & install ch1 file from GoogleDrive?

    Scheduled Pinned Locked Moved General Questions
    57 Posts 6 Posters 2.5k 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 @d.healey
      last edited by

      @d-healey How can I do it by using googledrive or this kind of file hosting services?

      Bollywood Music Producer and Trance Producer.

      d.healeyD 1 Reply Last reply Reply Quote 0
      • d.healeyD
        d.healey @DabDab
        last edited by

        @DabDab You need a direct link to the file, without that you can't do it.

        Libre Wave - Freedom respecting instruments and effects
        My Patreon - HISE tutorials
        YouTube Channel - Public HISE tutorials

        1 Reply Last reply Reply Quote 0
        • oskarshO
          oskarsh
          last edited by

          I am running into a similar issue. I can download the .exe from the docs just fine and also the 100mb.zip mentioned in @d-healey tutorial however when trying to download from S3 I get no download at all.

          I tested the url in the browser and it instantly downloads the file. I tested with curl as well which is used by HISE on Linux systems and it works fine as well.
          The correct URL also shows up in the ServerController.

          This is my url that I am trying to download from:
          https://bot-audio-sample-storage.s3.us-west-1.amazonaws.com/samples/boisterous-ammonite.wav

          Is there anything I am doing wrong here?

          This is the code that I am using, its quite simple.

          Server.setBaseURL("https://bot-audio-sample-storage.s3.us-west-1.amazonaws.com");
          const var target = FileSystem.getFolder(FileSystem.Documents).getChildFile("boisterous-ammonite.wav");
          
          Server.downloadFile("/samples/boisterous-ammonite.wav", {}, target, function(){
              Console.print(trace(this.data));
              if(this.data.finished) Console.print(this.data.sucess ? "Done" : "Fail");
          });
          
          HiseSnippet 874.3ocsU0siSbCE1S1cPjPaUQpO.V4pDojIIEJTABAra1fhfcIhAP8NjWOmrwJdrGY6YCgU6KUex5aP6wyL6lDHrPSUmKhx4mO6uyudhQyAqUaHA0e6xLfD7CgwKUtYGNiITjwCIA+T3wLqCLzRUGrLiYsPBIHXuW3UDTeeRw2e8zCXRlhCqTQHuWK3vqDoB2JsSd1KER4HVB7VQ5Zde+mMlqUGpk5bjO6E1mjw3yYmAmv7tUKjDbqiRDNsI1wbfkDr+A5jkwyzKTk9+dgUbpD7BCHw3AUpdjVl3YrWK4vYBYxjqhaKAOkIqxB6UlE9kviEIhq0uJa7yEFnqPrd9Hn1lzauMn2fuF81BkBViR6WRo6FFyMhL2JKd9bmvwJr3Lkgo80oRoujZ+YsvC0nGJWTJaNLxfBWin0C52uCE+o8iazHFLmClHK3NfYg28lW0p4LmKy9nd8NU65xxSD5tVVZlD5ZwfDqKQ16Eka6t.rttChXorOoUrE1HtNsIdjXwz5nmyLTGybF3nOgNRHg3kX6TZDpnntXZslxgZddJRVaau8h7h2ZqlmpE9lPMdcrzTsR3fnEryatFySv7rTyp.zqjp1deMjcnWbYmJl0gNMWwcBspU6KZPwOLoY0RHJyHTtVNiOa4lIrQILGqMdqdmDSWoKZpPIryfj1eN1q8vl6KbzmRaNTqflzGQaNhIj9X3RebzqGcg1LWnNiJEp4d4+CUfuUB3pHlpUmncvqwPuwEMp23xFzO2zzoa0luwxnkRrDtMy9gayMArkJO8TvzAaQj4v0Nhc7aNFcquuwHdYe9ZNpUiwn80YPk7MuGfTMnf+6ciGhEL+bXkNzuLv3Dd5DLDNGWpUNUVObHXm6zY3ZsuXjEWVnSxkL2laP7qMqLf4iMFa8ilJqvsb80p+KVqz+FWq78Rw6FNQ33y1NGqsENhYp+O3X0x3eL7noSAtaEA2Obzerqad+FW+az4NbB7XlyH9HIH7j7zX78HNf2tRAR7vCCp46VJk66k8YfXPkTH723WkwAd4fJiCtxHIkwM5OvKmB7q6ucgFjSphW5piO4hxzAjhICDWX+n9jT7kmOv49vuK1.ucL+5Nf4d6.l6uCX9sc.yC1ALObGv762HF+i9OO2oSKGGPESNpXEQPvQJF1YUzER9G.hKyo5A
          
          d.healeyD oskarshO 2 Replies Last reply Reply Quote 0
          • d.healeyD
            d.healey @oskarsh
            last edited by

            @oskarsh Your code works here. The file downloads. You are seeing a fail because there is a typo in your if statement (I think this might be in the docs?).

            this.data.sucess should be this.data.success

            Libre Wave - Freedom respecting instruments and effects
            My Patreon - HISE tutorials
            YouTube Channel - Public HISE tutorials

            1 Reply Last reply Reply Quote 1
            • oskarshO
              oskarsh @oskarsh
              last edited by

              @d-healey I restarted and HISE and its working ... intersting. It might have been stuck in a odd state. Thanks for testing!

              1 Reply Last reply Reply Quote 0
              • oskarshO
                oskarsh
                last edited by

                @d-healey I think what might have caused this is that I am re-setting the baseURL to a different one when I am trying to download. Similar to your use case I am getting the Download URL from a server, I then re set the base url to download the samples from a different host.

                Could this be causing issues? Can I reset my baseURL to the correct host every time I'll be calling another API?

                d.healeyD 1 Reply Last reply Reply Quote 0
                • d.healeyD
                  d.healey @oskarsh
                  last edited by

                  @oskarsh The idea of the base URL is you set it once and don't change it (of course sometimes you need to).

                  If you are changing it a lot then set it to https://. Then you can use any endpoint URL you need and just remove the https:// from it.

                  Libre Wave - Freedom respecting instruments and effects
                  My Patreon - HISE tutorials
                  YouTube Channel - Public HISE tutorials

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

                    @d-healey I am trying with Google Drive link...Not working..

                    HISE can not download file from Google Drive as well !!
                    What is the solution If I want to host my large files on Google Drive etc, other than my host Wordpress?

                    Bollywood Music Producer and Trance Producer.

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

                      @DabDab Amazon S3, PCloud. Dropbox can do it but it's complicated.

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

                      d.healeyD DabDabD ulrikU 3 Replies Last reply Reply Quote 0
                      • d.healeyD
                        d.healey @DanH
                        last edited by

                        @DanH Amazon S3 is easy with the WooCommerce plugin.

                        Libre Wave - Freedom respecting instruments and effects
                        My Patreon - HISE tutorials
                        YouTube Channel - Public HISE tutorials

                        DabDabD 1 Reply Last reply Reply Quote 0
                        • DabDabD
                          DabDab @d.healey
                          last edited by DabDab

                          @d-healey

                          Amazon S3 is easy with the WooCommerce plugin.

                          But it is not free after trial.

                          Bollywood Music Producer and Trance Producer.

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

                            @DanH I have found Pcloud very useful and working nicely with HISE. Thank you for that. But I have one issue after 1 Download if I delete the File and Re-Download it , HISE doesn't start the Download again.. WHY?

                            Bollywood Music Producer and Trance Producer.

                            DanHD d.healeyD 2 Replies Last reply Reply Quote 0
                            • DanHD
                              DanH @DabDab
                              last edited by

                              @DabDab I think Hise has to delete the file, otherwise it thinks the file is still there (unless you script a check to see if the file exists or not).

                              What happens if you download the file, delete the file, restart Hise and try the download again?

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

                              1 Reply Last reply Reply Quote 0
                              • d.healeyD
                                d.healey @DabDab
                                last edited by

                                @DabDab said in How can I download & install ch1 file from GoogleDrive?:

                                @DanH I have found Pcloud very useful and working nicely with HISE. Thank you for that. But I have one issue after 1 Download if I delete the File and Re-Download it , HISE doesn't start the Download again.. WHY?

                                It's in the docs

                                576b9be1-2833-427b-b5c3-e068be2f1219-image.png

                                But it is not free after trial.

                                So?

                                Libre Wave - Freedom respecting instruments and effects
                                My Patreon - HISE tutorials
                                YouTube Channel - Public HISE tutorials

                                DabDabD 1 Reply Last reply Reply Quote 0
                                • DabDabD
                                  DabDab @d.healey
                                  last edited by

                                  @d-healey What will be the scenario for compiled plugin? is it same as HISE behavior ?

                                  So

                                  I have found amazon S3 as premium and expensive. I can not use it for my FREE Plugins.

                                  Bollywood Music Producer and Trance Producer.

                                  d.healeyD 1 Reply Last reply Reply Quote 0
                                  • d.healeyD
                                    d.healey @DabDab
                                    last edited by

                                    @DabDab Ah yes, for free that's different, I don't think you mentioned that before. What about using github?

                                    Libre Wave - Freedom respecting instruments and effects
                                    My Patreon - HISE tutorials
                                    YouTube Channel - Public HISE tutorials

                                    DabDabD 1 Reply Last reply Reply Quote 0
                                    • DabDabD
                                      DabDab @d.healey
                                      last edited by

                                      @d-healey Oh.. Github can be used for Zip file sharing? I didn't have the idea. Thank you for that. :) (y)

                                      Bollywood Music Producer and Trance Producer.

                                      1 Reply Last reply Reply Quote 0
                                      • ulrikU
                                        ulrik @DanH
                                        last edited by

                                        @DanH said in How can I download & install ch1 file from GoogleDrive?:

                                        @DabDab Amazon S3, PCloud. Dropbox can do it but it's complicated.

                                        Can you explain how to do it using dropbox?

                                        Hise Develop branch
                                        MacOs 15.3.1, Xcode 16.2
                                        http://musikboden.se

                                        DabDabD DanHD 2 Replies Last reply Reply Quote 0
                                        • DabDabD
                                          DabDab @ulrik
                                          last edited by

                                          @ulrik said in How can I download & install ch1 file from GoogleDrive?:

                                          @DanH said in How can I download & install ch1 file from GoogleDrive?:

                                          @DabDab Amazon S3, PCloud. Dropbox can do it but it's complicated.

                                          Can you explain how to do it using dropbox?

                                          I am curious to learn it too..

                                          Bollywood Music Producer and Trance Producer.

                                          1 Reply Last reply Reply Quote 0
                                          • DanHD
                                            DanH @ulrik
                                            last edited by

                                            Can you explain how to do it using dropbox?

                                            I can't :grinning_squinting_face: I looked into it but it was too complicated so I paid for PCloud instead! If I can find the documentation again I will post it

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

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

                                            20

                                            Online

                                            1.7k

                                            Users

                                            11.9k

                                            Topics

                                            103.7k

                                            Posts