mirror of
https://github.com/dutchcoders/transfer.sh.git
synced 2026-02-05 23:12:18 +00:00
Deletion token issues #69
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 @sinkaroid on GitHub.
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 commented on GitHub:
@stefanbenten Could you check the email, I've requests deletion for this
@adamantike commented on GitHub:
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:
@sinkaroid commented on GitHub:
The thing is my first time found this, because i doing some migrate stuff to another server
I just put
curl --upload-file ./package.jsonI get the url uploaded but not for the tokenI 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@paolafrancesca commented on GitHub:
👍
I will try to find time to improve that. feel free to open a PR on your own if you are able to, thanks :)
@paolafrancesca commented on GitHub:
@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
@paolafrancesca commented on GitHub:
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" :)