Simple endpoint to accept file uploads and returns a URL for sharing.
- Python3.12+
- just
git clone https://github.com/mavx/fileshare
cd fileshare
just run-dev
Just visit the HOSTNAME:PORT/upload
using your browser for the GUI. Otherwise, see below:
Uploading a file via CLI
$ curl -F "[email protected]" localhost:5000/upload
{
"key": "figQPi",
"success": true,
"url": "localhost:5000/uploads/figQPi"
}
Accessing the file via CLI
$ curl -L localhost:5000/uploads/figQPi