Skip to content

CrazyWolf13/termupload

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Termupload

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.

Installation

  1. clone the repository:

    git clone https://github.com/CrazyWolf13/termupload/edit
    cd termupload/app
    
  2. install the dependencies:

    pip install -r requirements.txt
    

Utilisation

  1. start the FastAPI application:

    cd src
    fastapi run main.py
    
  2. 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.

  3. after uploading, you will receive a URL where you can download the file.

Endpoints

  • POST /upload: Uploads a file and returns a URL to download the file.

Licence

This project is licensed under the AGPL-3.0 license.

About

fastapi app, for simple file-sharing from cli

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages