mirror of
https://github.com/dutchcoders/transfer.sh.git
synced 2026-02-03 14:13:26 +00:00
Permission problems SSO? #91
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @mg-dev25 on GitHub.
Hello, I tried multiple command on multiple SHELL and computer, but it seems that I miss something.
Transfer.sh is installed on my Yunohost server, the installation work fine I can connect to the webpage, give my credential, and upload and download my file using the graphic interface of the web browser.
The problems are with the terminal, I tried with Wget, curl, and the function transfer, but it's not working. Maybe it's because of the security (SSO) identification?
Here are some of the command that I have used.
transfer dns.txt
wget --method PUT --body-file=dns.txt https://transfer.mg-dev25.com/dns.txt -O - -nv
curl -v --upload-file ./dns.txt https://transfer.mg-dev25.com/dns.txt
The curl command gives me some debugging information if it can help.
And here are the log from my server.
https://paste.yunohost.org/zacazirunu
Thanks for your helps.
@paolafrancesca commented on GitHub:
hello @mg-dev25
from the server logs it seems you do a
GETrequesto to the delete url (https://transfer.mg-dev25.com/qDlRVy/dns.txt/Uf0FNrJImyPi). It returns 405, method not allowed, because that url acceptsDELETErequestI tried
curl -v --upload-file ./hello.txt https://transfer.mg-dev25.com/hello.txtand the server seems to work properly: https://transfer.mg-dev25.com/z5vibr/hello.txtthe final upload url is print on stdout with no trailing newline, so it will be joined with the prompt of the shell
you might have missed it when making the curl request: it's missing indeed for the output you shared
@mg-dev25 commented on GitHub:
Hi, thanks for the help, it resolves my issue. I also update the transfer function on the one that is with in the Git page, which add more dialogue and information like download command, delete token, etc.
The transfer function indicate in the website simple used case is not the same, maybe it needs to be updated?