Skip to content

Latest commit

 

History

History
44 lines (30 loc) · 2.81 KB

File metadata and controls

44 lines (30 loc) · 2.81 KB

transfer.sh

  • transfer.sh - Easy and fast file sharing from the command-line.
    • Easy file sharing from the command line 簡單明瞭!

      # Upload using cURL
      $ curl --upload-file ./hello.txt https://transfer.sh/hello.txt
      https://transfer.sh/66nb8/hello.txt
      
      # Using the alias
      $ transfer hello.txt
      ##################################################### 100.0%
      https://transfer.sh/eibhM/hello.txt
      
      # Upload from web 有機會整合到自己的 UI 嗎??
      Drag your files here, or click to browse.
    • Share files with a URL. Preview your files in the browser! 將 URL 貼在 browser 會看到下載檔案的介面,有提供預覽,按 download 即可下載;但相同的 URL 直接 curl 會直接拿到檔案內容;實驗發現,後端會參照 Accept header 來決定回傳的內容。

    • Encrypt your files 有 public key 的人才能解密??

    • Sample use cases 有許多有趣的應用,可以一次上傳多個檔案、搭配其他工具在上傳前用密碼或 key 加密 #ril

新手上路 ?? {: #getting-started }

  • curl --upload-file ./hello.txt https://transfer.sh/ 拿到的 URL,在 browser 裡會提供下載檔案的介面 (type: text/plain; charset=utf-8 正確),按 download 即可下載 (但 URL 裡沒有安插 get/)。
  • curl --upload-file ./long.png https://transfer.sh/ 拿到的 URL,在 browser 裡會提供下載檔案的介面 (type: image/png 正確),按 download 即可下載 (但 URL 裡沒有安插 get/);要如何在 browser 裡直接表現?? 因為 inline link 是無效的 (404)
  • How to Share Files Online The Geeky Way (Command Line) (2017-11-26) #ril

Download/Inline Link ??

Docker ??

參考資料