silverstripers / chunkuploader
Chunkupload, fast, simultaneous uploads
Installs: 8
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 2
Forks: 1
Open Issues: 0
Type:silverstripe-module
Requires
- flowjs/flow-php-server: v1.0.3
- silverstripe/framework: ^3.6.0
This package is auto-updated.
Last update: 2024-12-05 01:55:50 UTC
README
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.
Requirements
- SilverStripe 3.6.*
- Flow PHP Server
Usage
Install via composer.
composer require silverstripers/chunkuploader dev-master
Using in forms
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.
Todo:
- Use saved uploads with set value
- Control number of files for uploading