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

Deletion token issues #555

Open
sinkaroid opened this issue May 17, 2023 · 6 comments
Open

Deletion token issues #555

sinkaroid opened this issue May 17, 2023 · 6 comments

Comments

@sinkaroid
Copy link

Same behaviour with #465, it would be nice if this service remake this clunky behaviour,
Since end user cannot retrieve this after the upload anymore at least give us some response that show in the curl options,
I never get the deletion token at all

@sinkaroid
Copy link
Author

@stefanbenten Could you check the email, I've requests deletion for this

@aspacca
Copy link
Collaborator

aspacca commented May 17, 2023

@sinkaroid what's the clunky behaviour?

there was no way to delete the uploads, before introducing the feature, and in order to not break compatibility we had no other choice than to add the delete token/delete url in the headers

everything is documented:
https://github.com/dutchcoders/transfer.sh#x-url-delete
https://github.com/dutchcoders/transfer.sh#bash-and-zsh-with-delete-url-delete-token-output-and-prompt-before-uploading

@sinkaroid
Copy link
Author

The thing is my first time found this, because i doing some migrate stuff to another server
I just put curl --upload-file ./package.json I get the url uploaded but not for the token

I know everything is documented properly, I also able the upload new file and delete them immediately with
grep -i -E 'transfer\.sh|x-url-delete'

My thoughts is don't just recommending user with:
curl --upload-file ./hello.txt https://transfer.sh/hello.txt

@aspacca
Copy link
Collaborator

aspacca commented May 18, 2023

My thoughts is don't just recommending user with:
curl --upload-file ./hello.txt https://transfer.sh/hello.txt

👍

I will try to find time to improve that. feel free to open a PR on your own if you are able to, thanks :)

@adamantike
Copy link
Contributor

I found this command as a simple one-liner to retrieve the delete URL after uploading the file, in case it's useful to include in the documentation:

curl -s -o /dev/null -w '%header{x-url-delete}\n' --upload-file ./hello.txt https://transfer.sh/hello.txt

@aspacca
Copy link
Collaborator

aspacca commented May 19, 2023

I found this command as a simple one-liner to retrieve the delete URL after uploading the file, in case it's useful to include in the documentation:

feel free to open a PR to add it to the docs as default example or with a big warning about "how to delete an upload" :)

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

No branches or pull requests

3 participants