HISE Logo Forum
    • Categories
    • Register
    • Login

    Downloading files - status Complete when connection is lost

    Scheduled Pinned Locked Moved Bug Reports
    4 Posts 2 Posters 67 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.
    • T
      tomekslesicki
      last edited by

      Here's how to reproduce the issue, at least on macOS:

      • open the Server Controller
      • start any download with Server.downloadFile()
      • as the download progresses, disconnect from the internet
      • the Status of all files in the queue will be marked as completed

      Unless I'm not getting something right, this is a bug? The download is obviously not completed, it's just that the connection to the server has been lost. If it's not a bug - how to handle such a situation?

      Thank you!

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

        @tomekslesicki said in Downloading files - status Complete when connection is lost:

        The download is obviously not completed,

        It's complete but it's not successful ;)

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

        T 1 Reply Last reply Reply Quote 0
        • T
          tomekslesicki @d.healey
          last edited by

          @d-healey ok, but the files are automatically marked as completed on the queue. How can I get them to download again?

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

            @tomekslesicki Call downloadFile again.

            Link Preview Image
            HISE | Docs

            favicon

            (docs.hise.audio)

            Also be aware that if you call this method again with the same URL and parameters, it will not add another download, but just replace the callback in the already pending download. If you call this method with a file that already exists, the method assumes that it's a previously stopped download and resumes the download at the position (delete the file before calling the method if you don't want this behaviour).

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

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

            18

            Online

            1.7k

            Users

            11.9k

            Topics

            103.3k

            Posts