mavx / fileshare

Simple endpoint to accept file uploads and outputs a link for sharing

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

fileshare

Simple endpoint to accept file uploads and returns a URL for sharing.

Requirements

Running the app

git clone https://github.com/mavx/fileshare
cd fileshare

just run-dev

Usage

Just visit the HOSTNAME:PORT/upload using your browser for the GUI. Otherwise, see below:

Uploading a file via CLI

$ curl -F "file=@filename.txt" localhost:5000/upload
{
  "key": "figQPi",
  "success": true,
  "url": "localhost:5000/uploads/figQPi"
}

Accessing the file via CLI

$ curl -L localhost:5000/uploads/figQPi

About

Simple endpoint to accept file uploads and outputs a link for sharing

License:MIT License


Languages

Language:Python 95.6%Language:Just 4.4%