Skip to content

Latest commit

 

History

History
128 lines (86 loc) · 3.52 KB

README.md

File metadata and controls

128 lines (86 loc) · 3.52 KB

FU - File Upload

Coded with ❤️ by Baibhav. (@spongebhav)

About FU

FU stands for File Upload. It is a command line tool written in Bash. It allows you to easily upload files temporarily and share it with other people with ease in comfort of your terminal. You can also set custom expiry date for the files.

It is powered by file.io

Installation

For Linux Users AND Intel Based MAC USERS

FOR non apt linux users please download and install jq manually from : https://stedolan.github.io/jq/download/

  • Download OR Clone the repository in your machine:
git clone https://github.com/baibhavanand/fileupload
  • Switch to fu directory:
cd fu
  • Give permissions to install.sh file:
sudo chmod 777 install.sh
  • Run install.sh:
sudo ./install.sh --install

For M1 based Mac Users

cd Downloads
  • Rename jq-osx-amd64 to jq
mv jq-osx-amd64 jq
  • Move copy to /usr/local/bin
cp jq /usr/local/bin
  • Type jq in terminal
jq
  • Click Close

  • Go to Settings > System Preferences > Security and Privacy > General

  • Click on open anyway

  • In termninal type JQ again and click on open anyway

  • Enter cd

cd
  • Download OR Clone the repository in your machine:
git clone https://github.com/baibhavanand/fileupload
  • Go to file upload directory
cd file upload
  • Give permissions to fu
sudo chmod 777 fu
  • Copy fu to /usr/local/bin
sudo cp fu /usr/local/bin

Usage

Arguments Description
-f To specify file name or file path
-t To specify your content that you want to upload as text file
-e To specify expiry date (optional)

Examples

  • Simple File Upload
fu -f filename/filepath

This will simply upload the file with 14 days expiry time and give you the link.

  • Uploading a text as text file.
fu -t 'your text here'

This will upload text.txt file containing your text here and will give you a link.

  • Set an Expiry date to your file
fu -t 'your text here' -e 1d/w/m/y

This will set the expiry date of the file according to the specified time.

LICENSE

File Upload is licensed under the MIT license. Take a look at the LICENSE for more information.

Pull Requests

Pull Requests for any kind of improvement in FU are welcome.



This project is maintained by Baibhav Anand Jha | Twitter: @spongebhav