Skip to content

Upload large files with pause, resume and cancel functionalities

Notifications You must be signed in to change notification settings

kishanpradhan/uploader

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Requirements

mongodb >=3.6
node >=8.9.4
redis >=3.0.6
rabbitmq >=3.6 (When using Queue)
python >=3.6 (When using Queue)

Queue Server(Not using now)

For anything related to queue goto queue_server and try uploading file.

Installation

  1. Install requirements
  2. Install dependencies npm install
  3. Add settings.js file in the root directory settings.js looks like
var exports = module.exports = {};

exports.DATABASES = [
	{
		"type": "mongo",
		"db": "uploader",
		"host": ["127.0.0.1"],
		"port": ["27017"],
		"user": "",
		"pwd": ""
	}
]

exports.CACHE = {
	"db": 0,
	"host": "127.0.0.1",
	"port": "6379",
	"pwd": "",
}

exports.CELERY = {
	BROKER_URL: "amqp://guest:guest@localhost:5672//"
}

  1. Create result directory in project root
  2. Now run node server.js or for development run npm run dev

Then go to http://127.0.0.1:3001?user=username and try uploading file.

Note: You need to pass user parameter to define which user is uploading file as we are storing file in username directory.

Functionalities

  1. Upload new file. Select file to upload
  2. Uploading file. You can get the real time progress. Uploading file
  3. Pause, Resume or Cancel during upload Paused file, You can resume
  4. If you come back to the page after refresh or after sometimes, you can see your file status. List of files with info
  5. You can resume the old file upload by uploading same file. It will resume from where it left. Resume by uploading same file again Note: To resume after refresh, the file name must be same.

About

Upload large files with pause, resume and cancel functionalities

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published