0.1.1 • Published 5 years ago

load-m-up v0.1.1

Weekly downloads
-
License
MIT
Repository
gitlab
Last release
5 years ago

Load m Up

A RESTful service specialized in receiving and managing web file uploads.

Get Started

  1. Install with: npm i -g --no-optional load-m-up.
  2. Optionally point LOADMUP_CONF env var to a TOML config file.
  3. Optionally store a strong admin token in LOADMUP_TOKEN env var.
  4. Run in the terminal with: load-m-up.

Reporting Bugs

If you have found any problems with this module, please:

  1. Open an issue.
  2. Describe what happened and how.
  3. Also in the issue text, reference the label ~bug.

We will make sure to take a look when time allows us.

Proposing Features

If you wish to get that awesome feature or have some advice for us, please: 1. Open an issue. 2. Describe your ideas. 3. Also in the issue text, reference the label ~proposal.

Contributing

If you have spotted any enhancements to be made and is willing to get your hands dirty about it, fork us and submit your merge request so we can collaborate effectively.

API

EndpointBodyVisibilitySummary
POST /uploadmultipart/form-dataPublicUpload files to the server
POST /confirmationapplication/jsonAdminMark an upload as permanent
GET /upload/:hash/:namenonePublicRetrieve a given upload

Configuration

The following options are available on the config file:

OptionTypeSummaryDefault
debugBooleanWhen true, enables some minor development env tweaks.false
portBooleanHTTP port for the server to listen80 or 443
confirmTimeoutIntegerTimeout in seconds for unconfirmed uploads to be removed.6
dirDirectoryWhere to store permanent uploads../uploads
formFileDirDirectoryWhere to store unconfirmed uploads../uploads/tmp
sizeLimitIntegerA maximum byte size for uploads.No limit
whitelistArray of StringAn array of mime-types/extensions that should be accepted on uploads.Disabled
blacklistArray of StringAn array of mime-types/extensions that should be rejected on uploads.Disabled
log.fileFileWhere to stream all log events.Unset
ssl.keyFileWhere to look for SSL key.Unset
ssl.certFileWhere to look for SSL cert/chain.Unset
multiBooleanWhether to allow multiple files in 1 requestfalse
multiSizeLimitIntegerA maximum overall byte size in 1 requestNo Limit
multiFileLimitIntegerA maximum amount of files allowed in 1 requestNo Limit
0.1.1

5 years ago

0.1.0

5 years ago