updog icon indicating copy to clipboard operation
updog copied to clipboard

hide base_directory, ease use CLI tools

Open S4ntiagoP opened this issue 3 years ago • 0 comments

Hey there!

I simplified the request that uploads a file, to make it easier to use with command line tools

  • The base directory is no longer leaked/needed
  • The 'path' variable is no longer needed
  • The 'Referer' header is no longer needed

Now you can download and upload with

# upload
curl -k -u ':MyPassword' -F 'file=@/tmp/file.txt' https://192.168.0.10/upload
# download
wget --no-check-certificate  --user '' --password 'MyPassword' https://192.168.0.10/test.txt

Bye!

S4ntiagoP avatar Nov 30 '22 19:11 S4ntiagoP