How can I download & install ch1 file from GoogleDrive?
-
-
@DabDab if you open the URL in a private browser does it download?
-
@d-healey if I do so, It is throwing an url and asks to download from a button..
-
@d-healey How can I do it by using googledrive or this kind of file hosting services?
-
@DabDab You need a direct link to the file, without that you can't do it.
-
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 theServerController
.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
-
@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 bethis.data.success
-
@d-healey I restarted and HISE and its working ... intersting. It might have been stuck in a odd state. Thanks for testing!
-
@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?
-
@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 thehttps://
from it. -
@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? -
@DabDab Amazon S3, PCloud. Dropbox can do it but it's complicated.
-
@DanH Amazon S3 is easy with the WooCommerce plugin.
-
-
@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?
-
@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?
-
@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
But it is not free after trial.
So?
-
@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.
-
@DabDab Ah yes, for free that's different, I don't think you mentioned that before. What about using github?
-
@d-healey Oh.. Github can be used for Zip file sharing? I didn't have the idea. Thank you for that. :) (y)