Skip to content

This is a simple local file server, written with Flask.

License

Notifications You must be signed in to change notification settings

mecaneer23/local-file-server

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

55 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Local Upload Server

This is a simple local file server, written with Flask.

Screenshots

computer screenshot

iphone screenshot iphone screenshot

Installation

git clone https://github.com/mecaneer23/local-upload-server/
cd local-upload-server
pip install -r requirements.txt

Running

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

curl SERVER:IP:PORT/api

List files on the server

curl SERVER.IP:PORT

Download file

curl SERVER.IP:PORT/files/FILENAME -O

Upload file

curl -F file=@/path/to/file SERVER.IP:PORT/upload/

or

curl -T /path/to/file SERVER.IP:PORT/upload/

Delete file

curl SERVER.IP:PORT/delete/FILENAME

Replace FILENAME with the file you want to delete