/exposefolder

Oneline web server with file upload

Primary LanguageGoBSD 3-Clause "New" or "Revised" LicenseBSD-3-Clause

📁 exposefolder

A oneline web server for development purposes.

Screenshot

Motivation

When I need to quickly serve a folder via http for whatever reason I usually use python3 -m http.server.

Apart from serving files from the server to a browser, I sometimes wished you could just as easily upload files, too.

exposefolder serves a folder, showing a list of files when there is no index file present. On a listing page you can drag and drop files into the browser and they appear, just like magic ✨.

Usage

$ exposefolder -h
Usage of exposefolder:
  -foldername string
	Path of the folder to expose (default ".")
  -port int
	Port to bind the web server on (default 8080)
$ exposefolder -foldername myproject -port 1234
2021/04/01 00:48:58 serving "myproject" on ":1234"

Installation

Using Go:

$ go install github.com/lukasdietrich/exposefolder@master