Web:
curl:
$ curl -H 'x-file-name: hello.png' --data-binary @hello.png https://filelink.io
https://filelink.io/qxw5pj65gj07/hello.png
curl helper
$ echo 'filelink(){ if [ $# -eq 0 ];then echo "$ filelink /path/to/file";return 1;fi;if [ ! -f $1 ];then echo "$1 does not exists";return 1;fi;echo $(curl --progress-bar -H "x-file-name: $(basename $1)" --data-binary @$1 https://filelink.io); }' >> ~/.bashrc # OR .bash_profile on MacOS
$ exec -l $SHELL
$ filelink hello.zip
######################################################################## 100.0%
https://filelink.io/rhdtvz1fis6p/hello.zip
注:
1
basstk 2018-01-18 11:43:09 +08:00
感谢分享,虽然用不上
|
2
livc 2018-01-18 17:56:19 +08:00 via iPhone
transfer.sh 也可以
|
3
fuckgfwfuckgfw OP @live transfer 对中文有 bug
|