2017 © Pedro Peláez
 

library resumable-js-processor

Easily handle uploads coming from Resumable.js

image

georaldc/resumable-js-processor

Easily handle uploads coming from Resumable.js

  • Thursday, June 30, 2016
  • by georaldc
  • Repository
  • 1 Watchers
  • 1 Stars
  • 34 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 1 Forks
  • 0 Open issues
  • 6 Versions
  • 0 % Grown

The README.md

ResumableJsProcessor

Build Status, (*1)

Easily handle resumable.js uploads., (*2)

Inside target server file for resumable.js, instantiate the ResumableJsProcessor class with your intended upload path specified, pass the appropriate mode (supports 2 modes at the moment, see ResumableJsProcessor constants) and call the process() method., (*3)

$resumable = new ResumableJsProcessor('path/to/uploads');
if (isset($_FILES)) {
    $resumable->setMode(ResumableJsProcessor::MODE_UPLOAD_CHUNK);
} else {
    $resumable->setMode(ResumableJsProcessor::MODE_TEST_CHUNK);
}
$fileUploaded = $resumable->process();
if (false !== $fileUploaded) {
  // $fileUploaded will contain the upload path + filename of file that has been uploaded. You may do further processing here
}

This file will be called multiple times for every chunk checked and uploaded. Once ResumableJsProcessor::process() returns a string, that will be indication that the chunks have been uploaded and assembled., (*4)

The Versions

30/06 2016

dev-master

9999999-dev

Easily handle uploads coming from Resumable.js

  Sources   Download

MIT

The Requires

 

The Development Requires

by Georald Camposano

30/06 2016

0.2.0

0.2.0.0

Easily handle uploads coming from Resumable.js

  Sources   Download

MIT

The Requires

 

The Development Requires

by Georald Camposano

29/06 2016

0.1.3

0.1.3.0

Easily handle uploads coming from Resumable.js

  Sources   Download

MIT

The Requires

 

The Development Requires

by Georald Camposano

27/06 2016

0.1.2

0.1.2.0

Easily handle uploads coming from Resumable.js

  Sources   Download

MIT

The Requires

 

The Development Requires

by Georald Camposano

23/06 2016

0.1.1

0.1.1.0

Easily handle uploads coming from Resumable.js

  Sources   Download

MIT

The Requires

 

The Development Requires

by Georald Camposano

22/06 2016

0.1.0

0.1.0.0

Easily handle uploads coming from Resumable.js

  Sources   Download

MIT

The Requires

 

The Development Requires

by Georald Camposano