This application allows you to upload files via a FastAPI interface. After uploading a file, you will receive a URL via which the file can be downloaded.
-
clone the repository:
git clone https://github.com/CrazyWolf13/termupload/edit cd termupload/app
-
install the dependencies:
pip install -r requirements.txt
-
start the FastAPI application:
cd src fastapi run main.py
-
use cURL to upload a file:
curl -X POST "http://127.0.0.1:8000/upload" -F "file=@./file.txt"
Replace
./file.txt
with the path to your file. -
after uploading, you will receive a URL where you can download the file.
POST /upload
: Uploads a file and returns a URL to download the file.
This project is licensed under the AGPL-3.0 license.