Skip to content

Latest commit

 

History

History
31 lines (22 loc) · 472 Bytes

README.md

File metadata and controls

31 lines (22 loc) · 472 Bytes

Uploader

A naive file uploader.

How to use

Clone this repository and execute uploader.rb.

$ ruby uploader.rb

Or curl and execute it.

$ curl -sL https://git.io/uploaderrb | ruby -

Then, open http://localhost:4567 and upload a file. It will be uploaded to upload directory by default.

Options

$ ruby uploader.rb --help
Usage: uploader [options]
    -p, --port NUMBER
    -u, --upload DIRECTORY