adhocore / tusc.sh

tus 1.0.0 client protocol implementation for bash. Resumable large file upload to Tus sever from terminal using bash script
https://github.com/adhocore/tusc.sh
MIT License
36 stars 9 forks source link

TUS config cache Location must be host specific #25

Closed adhocore closed 1 year ago

adhocore commented 1 year ago

currently ~/.tus.json caches location like

{
  "sha1key": {
    "location": "http://somehost/files/path"
  }
}

but this is problematic as tusc is meant to upload a file to many tusd servers as we dont know which server this location data is for.

the solution is to namespace location by host eg:

{
  "sha1key": {
    "lochost1": "http://host1/files/path1",
    "lochost2": "http://host2/files/path2"
  }
}