hamedpro / freeflow-core

🩵⚡️next generation of decentralised collaboration
3 stars 1 forks source link

use xz to compress uploaded files - & keep just unique files #210

Open hamedpro opened 1 year ago

hamedpro commented 1 year ago

before writing an uploaded file to disk, compress it. and whenever this file is requested decompress it first. and if a new file is uploaded but its sha 256 hash is same with an existing file, don't save it again