2017 © Pedro Peláez
 

silverstripe-module chunkuploader

Chunkupload, fast, simultaneous uploads

image

silverstripers/chunkuploader

Chunkupload, fast, simultaneous uploads

  • Monday, October 9, 2017
  • by silverstripers
  • Repository
  • 1 Watchers
  • 0 Stars
  • 2 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 1 Forks
  • 0 Open issues
  • 1 Versions
  • 0 % Grown

The README.md

ChunkUploader - multiple, simultaneous uploads.

ChunkUploader field is a SilverStripe form field type, which can be used to upload large files faster. Its built with Resumable.js and supports multi file uploading., (*1)

Requirements

  1. SilverStripe 3.6.*
  2. Flow PHP Server

Usage

Install via composer., (*2)

composer require silverstripers/chunkuploader dev-master

Using in forms

In the example below, we are creating a form with the chunk uploader., (*3)

public function Form()
{
    $form = new Form($this, 'Form', new FieldList(
        ChunkUploadField::create('Files')
            ->setRightTitle('Upload your files here.')
    ), new FieldList(
        FormAction::create('doUpload')
    ), new RequiredFields());
    return $form;
}

public function doUpload($data, $form)
{
    $files = $data['Files']
}

$data['Files]' returns a CSV list of file IDs., (*4)

Form, (*5)

The above will make a form list this screenshot., (*6)

Todo:

  1. Use saved uploads with set value
  2. Control number of files for uploading

The Versions

09/10 2017

dev-master

9999999-dev

Chunkupload, fast, simultaneous uploads

  Sources   Download

BSD-2-Clause

The Requires

 

by Nivanka Fonseka

module silverstripe resumable fast uploads large file uploads