HISE Logo Forum
    • Categories
    • Register
    • Login

    help with Server.downloadFile() - why no work?

    Scheduled Pinned Locked Moved Scripting
    3 Posts 2 Posters 222 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.
    • Dan KorneffD
      Dan Korneff
      last edited by Dan Korneff

      I could use an extra set of eyes on this. I'm probably missing something simple....
      I'm running into an issue when I try to use Server.downloadFile() after I've gathered data from various endpoints.
      If I download the file before I use the endpoints, everything works as expected, but if I use the endpoints first, the file download fails. I'm thinking something with the http header? But I'm not sure.

      DownloadHelp.gif

      Dan Korneff - Producer / Mixer / Audio Nerd

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

        Clear the header before you start the downloads

        Server.setHttpHeader("");

        I ran into the same issue :)

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

        Dan KorneffD 1 Reply Last reply Reply Quote 1
        • Dan KorneffD
          Dan Korneff @d.healey
          last edited by

          @d-healey
          a8efe79d236f2bb6503f7cff2c7a00a7.gif

          Dan Korneff - Producer / Mixer / Audio Nerd

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

          23

          Online

          1.8k

          Users

          12.0k

          Topics

          104.6k

          Posts