V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
爱意满满的作品展示区。
fuckgfwfuckgfw
V2EX  ›  分享创造

分享个传文件的 filelink.io

  •  
  •   fuckgfwfuckgfw · 2018-01-18 10:56:17 +08:00 · 1841 次点击
    这是一个创建于 2283 天前的主题,其中的信息可能已经有所发展或是发生改变。

    Web:

    https://filelink.io

    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
    

    注:

    • 文件名可以是中文
    • 服务器在国外(几个朋友已经用了一段时间, 反应上传速度还不错, 下载有人说被 Q) 如有不爽多担待
    basstk
        1
    basstk  
       2018-01-18 11:43:09 +08:00
    感谢分享,虽然用不上
    livc
        2
    livc  
       2018-01-18 17:56:19 +08:00 via iPhone
    transfer.sh 也可以
    fuckgfwfuckgfw
        3
    fuckgfwfuckgfw  
    OP
       2018-01-21 09:00:20 +08:00 via Android
    @live transfer 对中文有 bug
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   3194 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 28ms · UTC 10:50 · PVG 18:50 · LAX 03:50 · JFK 06:50
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.