Cybrkyd's Git Repositories

flask-share

Branch: main Last commit: 2026-02-08 14:39:50 +0000 Clone: git clone https://git.cybrkyd.com/repository/flask-share

Flask Multiple File Upload

A Python Flask web app to upload multiple files simultaneously via a browser on a local network. This was made as a way to quickly transfer files from my phone to my PC.

Requirements

Installation

  1. Clone this repository.

  2. Install the required dependencies:

pip install flask
  1. Update the upload folder path:
UPLOAD_FOLDER = '/path/to/upload/folder'  # Change this to the desired path

Usage

  1. Run the application:
python share.py
  1. Open a web browser and navigate to the host IP address:
# For example

http://192.168.0.94:5000
  1. Click "Browse..." to select one or more files.

  2. Click "Upload" to upload the selected file(s).

  3. The application will confirm successful uploads with a list of uploaded filenames.

Port and Host

The application runs on port 5000 and accepts connections from all interfaces (0.0.0.0). Modify the port in the app.run() call:

app.run(host='0.0.0.0', port=5000)

Ensure port 5000 is also open on the firewall, if applicable.

Licence

This project is made available under a GPL3 licence -- see COPYING for the full text.