Skip to content

Meng4132/FlaskFileTransfer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Flask File Transfer

License: MIT License

Description

This is a lightweight HTTP-based file transfer tool, powered by flask.

Features:

  • Easy setup with minimal dependencies
  • Clean web interface with Bootstrap styling
  • Supports file uploads and downloads via a web interface.
  • Ideal for small-scale file sharing in local networks (e.g. home, office)

Limitations:

  • Not designed for large-scale or public file transfers
  • No built-in authentication or encryption (use only in trusted networks)

Get started

Preparations (Linux)

apt install git python3 python3-venv
  1. Clone to the local
git clone https://github.com/Meng4132/FlaskFileTransfer.git
cd FlaskFileTransfer
  1. Virtual environment (Recommended)
python3 -m venv venv_flask

Enter the virtual environment:

source ./venv_flask/bin/activate
  1. Install flask
pip install flask

or

pip install -r requirements.txt
  1. Start server
python3 flask_transfer.py

use Ctrl-C to quit.

  1. To quit the virtual environment:
deactivate

Security Note

This tool is designed for trusted local networks only. Do not expose it to the Internet without additional security measures (e.g. HTTPS, authentication).

Structure

FileTransfer/
├── .gitignore
├── flask_transfer.py                 # Main application script
├── requirements.txt                  # Python dependencies
├── static/
│   ├── css/                          # Bootstrap CSS
│   │   ├── bootstrap.min.css
│   │   └── bootstrap.min.css.map
│   └── js/                           # Bootstrap JS
│       └── bootstrap.bundle.min.js
├── templates/
│   └── index.html                    # Web interface template
└── uploads/                          # Created during the first run. Uploaded files will be here.

Credits

This project uses Bootstrap v5.1.3 for frontend styling and interactive components, licensed under the MIT License.

License

This project is licensed under the MIT License - see the MIT License file for details.

About

A lightweight file transfer tool

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published