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.
Install via composer.
composer require silverstripers/chunkuploader dev-master
In the example below, we are creating a form with the chunk uploader.
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.
The above will make a form list this screenshot.
Module rating system helping users find modules that are well supported. For more on how the rating system works visit Module standards
Score not correct? Let us know there is a problem