dev-master
9999999-devChunkupload, fast, simultaneous uploads
BSD-2-Clause
The Requires
by Nivanka Fonseka
module silverstripe resumable fast uploads large file uploads
Chunkupload, fast, 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)
Install via composer., (*2)
composer require silverstripers/chunkuploader dev-master
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)
, (*5)
The above will make a form list this screenshot., (*6)
Chunkupload, fast, simultaneous uploads
BSD-2-Clause
module silverstripe resumable fast uploads large file uploads