Skip to content
This repository was archived by the owner on Apr 8, 2020. It is now read-only.

zujoio-archieved/socket-file-uploader

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

@zujo/Socket-File-Uploader

Socket server library for File Upload with Multiple files Resume, Pause, cancel feature, over socket.io.

Installation

npm install @zujo/socket-file-uploader --save

Usage

const  uploader = require('@zujo/socket-file-uploader');

io.on("connection", function(socket){

	var  upload = new  uploader(socket);
	upload.uploadPath = __dirname + '/files/';

});

Steps

Import package from node modules.

const  uploader = require('@zujo/socket-file-uploader');

Provide socket to a new instance of a class(uploader) as a arguments.

var  upload = new  uploader(socket);

Provide a destination directory Path, where you want to save the uploaded files.

upload.uploadPath = '_path_of_directory_';

All set..!

Features

  • Resumable file uploading

  • Multiple file uploading supported

  • Cancel uploading

Authors and acknowledgment

Akhil Ramani, Arjun Kava

Thanks and credits

Mayank Pandav, Chintan Rajpara

Organization

Zujo

About

File uploader using Socket IO for Node JS

Resources

Stars

Watchers

Forks

Packages

No packages published