How to make simple Downloader with HISE
-
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 ? -
@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);
-
@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...
-
@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.
-
@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 (){});
-
@Lindon Nice nice... :)
-
@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 Thanks Man :)
-
-
@Tania-Ghosh OOOPS!!