wget example for https://transfer.sh #330

Closed
opened 2026-01-19 18:29:54 +00:00 by michael · 1 comment
Owner

Originally created by @libjs on GitHub.

#!/bin/sh

wget -t 1 -qO - --method=PUT --body-file="$1" --header="Content-Type: $(file -b --mime-type "$1")" "https://transfer.sh/$(basename "$1")"
echo

exit $?
Originally created by @libjs on GitHub. ``` #!/bin/sh wget -t 1 -qO - --method=PUT --body-file="$1" --header="Content-Type: $(file -b --mime-type "$1")" "https://transfer.sh/$(basename "$1")" echo exit $? ```
Author
Owner

@paolafrancesca commented on GitHub:

@libjs you can open a pull request to add it to README.md

@paolafrancesca commented on GitHub: @libjs you can open a pull request to add it to `README.md`
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: dutchcoders/transfer.sh#330