Reminds me an other project: https://github.com/guits/pastefile
$ cat ~/myfile | curl -X PUT --upload-file “-” https://transfer.sh/myfile.txt
121–125 of 125 posts
Re: $ cat ~/myfile | curl -X PUT --upload-file “-” https://transfer.sh/myfile.txt
#122Reminds me an other project: https://github.com/guits/pastefile
Yes, it's a good project, i use pastefile very often !
Re: $ cat ~/myfile | curl -X PUT --upload-file “-” https://transfer.sh/myfile.txt
#123FYI The "-X PUT" argument is not doing what you think it is[1], and is superfluous since you're using "--upload-file". You almost never really want "-X". [1]: https://curl.haxx.se/docs/manpage.html#-X
Just to clarify your point, --upload-file with a trailing slash results in a POST and without a trailing slash it results in a PUT.
Right. -X overrides this default behavior without otherwise affecting the semantics of the request.
Re: $ cat ~/myfile | curl -X PUT --upload-file “-” https://transfer.sh/myfile.txt
#124Very similar to a project of mine from 5 years ago: http://sbit3.me
I even had a YN post: https://news.ycombinator.com/item?id=2598682 :)
Re: $ cat ~/myfile | curl -X PUT --upload-file “-” https://transfer.sh/myfile.txt
#125How do people feel about .sh domains?