Skip to content

zalari/tus-client

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

tus-server

TUS Protocol 0.2.2 Client implementation in nodejs.

Right now it is a heavy work in progress and it does not claim to be compatible to the tus.io protocol (yet). But stay tuned!

Configuration

edit config.json

{
	"port":5000,
    "prefixPath":"/upload/", //prefix for URL, where the service is waiting
    "fileUploadPath":"files", //path to dir, where files are stored
    "serverString":"tus-server", //Server-Agent :)
    "logDir": "logs", //Winston-Options...
    "logRotateSize": 10485760,
    "logLevel": "info",
    "host":"127.0.0.1" //Address, that the server should bind to
}
  • Allowed log levels: debug, info, warn, error
  • LogRotateSize: 10MB default

Install

npm install

Examples

tus-client comes with a command-line based client tool:

tus_upload.js file uploadURI [offset]

The uploadURI must end with a slash!

Usage

Have a look at (tus_upload.js) to see how to use the module.

License

MIT License.

About

tus.io compatible client module for node, for uploading files

Resources

License

Stars

Watchers

Forks

Packages

No packages published