HISE Logo Forum
    • Categories
    • Register
    • Login

    Save a custom file path in AppData

    Scheduled Pinned Locked Moved Scripting
    2 Posts 2 Posters 169 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.
    • L
      Lumi283
      last edited by

      Hi, is there any way to save a folder path in AppData? (To set the default download folder).

      The problem is that the Server.downloadFile method needs a File type variable for destination folder, and we can't save a File variable in a JSON or TEXT file in AppData. How can I keep this value in AppData? Thank you.

      			Server.downloadFile(path, {}, locations, function()
      			{
      			    if(this.data.finished)
      			       drawPopup("Downloaded successfuly", true );
      			});	
      
      d.healeyD 1 Reply Last reply Reply Quote 0
      • d.healeyD
        d.healey @Lumi283
        last edited by

        @Lumi283 You might run into permission issues trying to download to app data. Probably better to use the system temp folder

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

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

        15

        Online

        1.7k

        Users

        11.8k

        Topics

        102.6k

        Posts