Flask File Transfer
License: MIT License
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)
apt install git python3 python3-venv
- Clone to the local
git clone https://github.com/Meng4132/FlaskFileTransfer.git
cd FlaskFileTransfer
- Virtual environment (Recommended)
python3 -m venv venv_flask
Enter the virtual environment:
source ./venv_flask/bin/activate
- Install
flask
pip install flask
or
pip install -r requirements.txt
- Start server
python3 flask_transfer.py
use Ctrl-C
to quit.
- To quit the virtual environment:
deactivate
This tool is designed for trusted local networks only. Do not expose it to the Internet without additional security measures (e.g. HTTPS, authentication).
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.
This project uses Bootstrap v5.1.3 for frontend styling and interactive components, licensed under the MIT License.
This project is licensed under the MIT License - see the MIT License file for details.