2017 © Pedro Peláez
 

silverstripe-module silverstripe-chunkeduploadfield

A Silverstripe UploadField that supports (very) large uploads without fiddling with php.ini

image

micschk/silverstripe-chunkeduploadfield

A Silverstripe UploadField that supports (very) large uploads without fiddling with php.ini

  • Friday, December 23, 2016
  • by micschk
  • Repository
  • 1 Watchers
  • 8 Stars
  • 1,301 Installations
  • PHP
  • 2 Dependents
  • 1 Suggesters
  • 5 Forks
  • 0 Open issues
  • 3 Versions
  • 22 % Grown

The README.md

This module will not be upgraded to Silverstripe 4

The FilePond module is recommended as a replacement., (*1)

Thank you for including this module in your projects over the past seven years.
It's always cool to see your work being used in well over 5000 projects :-)
Screenshot 2021-06-25 at 16 13 07
(packagist data), (*2)

silverstripe-chunkeduploadfield

A Silverstripe UploadField that supports (very) large uploads without fiddling with php.ini, (*3)

Screenshot, (*4)

Silverstripe 3 info

The ChunkedUploadField hooks into the jQuery-File-Upload module used internally by the standard UploadField. It sets some extra config and hooks into the upload action to add support for uploading large files in chunks., (*5)

A video file upload example:, (*6)

    $mp4field = ChunkedUploadField::create("MP4")->setTitle("MP4 File");
    $mp4field->getValidator()->allowedExtensions = array("mp4");
    $sizeMB = 500 * 1024 * 1024; // 500 MB in bytes
    $mp4field->getValidator()->setAllowedMaxFileSize($sizeMB);

By default, the chunk size is set to 90% of php's upload_max_filesize or post_max_size (whichever is smaller). It can be set to a different size:, (*7)

    // send in chunks of 1 MB each
    $mp4field->setConfig('maxChunkSize', 1 * 1024 * 1024 );

How do chunked uploads work?

The maxChunkSize is auto-set to ca 90% of the upload size permitted by PHP. The File Upload plugin splits up files with a file size bigger than maxChunkSize into multiple blobs and submits each of these blobs to the upload url in sequential order. After the full file has been received and reassembled, the upload handling is passed off to the regular UploadField., (*8)

The Versions

23/12 2016

dev-master

9999999-dev

A Silverstripe UploadField that supports (very) large uploads without fiddling with php.ini

  Sources   Download

MIT

The Requires

 

files silverstripe uploads

23/12 2016

1.1

1.1.0.0

A Silverstripe UploadField that supports (very) large uploads without fiddling with php.ini

  Sources   Download

MIT

The Requires

 

files silverstripe uploads

09/02 2015

1.0

1.0.0.0

A Silverstripe UploadField that supports (very) large uploads without fiddling with php.ini

  Sources   Download

MIT

The Requires

 

files silverstripe uploads