Whenever I download bigger files, my RAM fills up and the tab/download crashes. Is it possible to “fsync” downloads with Firefox (really Librewolf, but still) so that it goes directly into storage instead of RAM? Or to adjust the amount of memory used before it is dumped into storage?

  • Auster@thebrainbin.org
    link
    fedilink
    arrow-up
    2
    ·
    9 days ago

    Haven’t tried this on Firefox, but would making a swapfile (so you can use the storage it takes as RAM) help? Or maybe get the download link from the download history and run it on wget from the terminal?

    • printf("%s", name);@piefed.blahaj.zoneOP
      link
      fedilink
      English
      arrow-up
      1
      ·
      9 days ago

      Thanks! It actually ate my swap too. 🤣 I could of course increase the size of the swapfile, but that doesn’t solve the underlying problem of the download going into RAM/swap. But maybe that’s just how it is?

      Holy crap that was a great idea with wget! I’ll try it later. Do you know if I’m able to authenticate logins with wget? As in, I’m actually downloading from a cloud service and I’m worried that it’ll give me a 401 Unauthorized.

      • tal@lemmy.today
        link
        fedilink
        English
        arrow-up
        2
        ·
        edit-2
        9 days ago

        Do you know if I’m able to authenticate logins with wget? As in, I’m actually downloading from a cloud service and I’m worried that it’ll give me a 401 Unauthorized.

        Once upon a time, Netscape Navigator stored cookies in a “cookies.txt” file. While Firefox doesn’t do so these days, Firefox has a “cookies.txt” addon that will let you export the cookies from your browser session in said format. You can use these if you require some sort of authentication that needs to be done interactively from the browser: $ wget --load-cookies cookies.txt <URL to download>.

        wget also natively supports authentication with a password, but it’s possible that whatever service you’re using requires interactive authentication in a browser, and for those, this is a workaround.

      • SteveTech@aussie.zone
        link
        fedilink
        arrow-up
        2
        ·
        9 days ago

        Do you know if I’m able to authenticate logins with wget? As in, I’m actually downloading from a cloud service and I’m worried that it’ll give me a 401 Unauthorized.

        If you open the network tab on the devtools, you can usually copy a request as a curl command. I believe downloads also show up there and it will let you curl the file with all the cookies and headers that the file was originally requested with.

      • Auster@thebrainbin.org
        link
        fedilink
        arrow-up
        2
        ·
        9 days ago

        About authenticating, not too familiar with it to give a good answer. All I know is that some download links come with validation tokens attached and that those links with tokens can be copied into external downloaders while the token is active. But things like logging in within wget or solving captchas is being me.