psi-4ward / psitransfer

Simple open source self-hosted file sharing solution.
BSD 2-Clause "Simplified" License
1.46k stars 211 forks source link

tar.gz Download consumes to much memory #221

Closed louino2478 closed 2 years ago

louino2478 commented 2 years ago

can disable the button ".tar.xz" ? because is make a out of memory crach when we used this button with big file

my psi transfert running in a docker container

psi-4ward commented 2 years ago

So zip and tar.gz archives should be generated using streams and it should not consume much memory. If it does as you say there's possibly a bug in the backpressure handling of archiver append and we need to change the implementation here.

To disable the button you can use a little CSS-Hack:

.btn-download-archive > .btn:nth-child(2) {
  display:none;
}}