Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

hide base_directory, ease use CLI tools #55

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

S4ntiagoP
Copy link

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!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant