Forum

    • Register
    • Login
    • Search
    • Categories

    downloadFile doesn't seem to overwrite

    Bug Reports
    5
    14
    107
    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.
    • ustk
      ustk last edited by ustk

      Server.downloadFile doesn't want to re-download/overwrite a file when it is already present in the directory.
      I thought it was overwriting each tie with no pity πŸ€”
      Even if I remove the downloaded files, I have to relaunch Hise again at each try or the server doesn't want to start again

      I cannot help pressing F5 in the forum...
      Studio427 Audio - Audio Instruments & FX Plugins for music production. Website - Facebook

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

        @ustk Read the docs πŸ˜‰

        https://docs.hise.audio/scripting/scripting-api/server/index.html#cleanfinisheddownloads

        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

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

        ustk 1 Reply Last reply Reply Quote 1
        • ustk
          ustk @d.healey last edited by

          @d-healey Yeah I overlooked this one... Thanks πŸ™‚
          But it is confusing (to me at least) because above it is written:

          Be aware that this file will be deleted and overwritten!

          I cannot help pressing F5 in the forum...
          Studio427 Audio - Audio Instruments & FX Plugins for music production. Website - Facebook

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

            @ustk Yep that is confusing

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

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

              @d-healey I'm finding the download function to be rather unreliable. On Mac it's just about ok, but windows not - lots of stopping before the download has finished and 'if(this.data.finished)' seems to activate anyway, even though file is not complete....

              Think I'm going to park it for now tbh

              Anyone having success with it?

              S d.healey 2 Replies Last reply Reply Quote 0
              • S
                Steve Mohican @DanH last edited by

                Looks intresting.

                Is there any limitation for downloading files?

                DanH 1 Reply Last reply Reply Quote 0
                • DanH
                  DanH @Steve Mohican last edited by

                  @Steve-Mohican a file size over 2GB was causing me issues

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

                    @DanH Check your firewall settings.

                    Anyone having success with it?

                    PercX

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

                    DanH Christoph Hart 2 Replies Last reply Reply Quote 0
                    • DanH
                      DanH @d.healey last edited by

                      @d-healey 😬

                      1 Reply Last reply Reply Quote 0
                      • Christoph Hart
                        Christoph Hart @d.healey last edited by

                        @d-healey not really, PercX is using a custom C++ code that predates the HiseScript Server stuff.

                        But apart from the flakiness of the download calls, 2GB is a limit that you don't want to exceed for any file. Many file systems choke with files that exceed the 32bit range - that is precisely why split archives were invented.

                        d.healey 1 Reply Last reply Reply Quote 1
                        • d.healey
                          d.healey @Christoph Hart last edited by

                          @Christoph-Hart

                          flakiness of the download calls

                          Can you provide more details? πŸ™‚

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

                          1 Reply Last reply Reply Quote 0
                          • Christoph Hart
                            Christoph Hart last edited by

                            Nothing particular but itβ€˜s fresh from the oven and it requires a bit of real world usage to sort out the kinks.

                            DanH 1 Reply Last reply Reply Quote 1
                            • DanH
                              DanH @Christoph Hart last edited by

                              @Christoph-Hart Well just to feedback one of my standalone compiled projects works fine, but the other not so much. The only difference in the two scripts is the urls....

                              I assume the 2GB limit applies when downloading via a web browser too?

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

                                @DanH said in downloadFile doesn't seem to overwrite:

                                The only difference in the two scripts is the urls....

                                Try swapping the URLs in the two projects and see what happens.

                                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

                                18
                                Online

                                982
                                Users

                                6.6k
                                Topics

                                60.7k
                                Posts