https://github.com/mecaneer23/local-file-server
This is a simple local file server, written with Flask.
https://github.com/mecaneer23/local-file-server
file-server file-upload flask flask-file-server local local-server local-upload-server python qr-code
Last synced: about 1 month ago
JSON representation
This is a simple local file server, written with Flask.
- Host: GitHub
- URL: https://github.com/mecaneer23/local-file-server
- Owner: mecaneer23
- License: mit
- Created: 2023-12-17T20:32:08.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2025-03-04T13:42:23.000Z (over 1 year ago)
- Last Synced: 2025-03-04T14:33:10.331Z (over 1 year ago)
- Topics: file-server, file-upload, flask, flask-file-server, local, local-server, local-upload-server, python, qr-code
- Language: Python
- Homepage:
- Size: 130 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Local Upload Server
This is a simple local file server, written with Flask.
## Screenshots



## Installation
```bash
git clone https://github.com/mecaneer23/local-upload-server/
cd local-upload-server
pip install -r requirements.txt
```
## Running
```bash
python3 server.py
```
## Usage
### Web interface - recommended
1. Open this webpage on all devices.
2. Upload file(s) using the form.
3. Download file(s) onto other device(s) from the list.
### CLI - simplified examples
Replace `SERVER.IP:PORT` with the ip and port provided by the server
#### View help
```bash
curl SERVER:IP:PORT/api
```
#### List files on the server
```bash
curl SERVER.IP:PORT
```
#### Download file
```bash
curl SERVER.IP:PORT/files/FILENAME -O
```
#### Upload file
```bash
curl -F file=@/path/to/file SERVER.IP:PORT/upload/
```
or
```bash
curl -T /path/to/file SERVER.IP:PORT/upload/
```
#### Delete file
```bash
curl SERVER.IP:PORT/delete/FILENAME
```
Replace `FILENAME` with the file you want to delete