Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Here on this page we can see that it is possible to add some events with plupload library.
As far as I understood, this module allows us to append custom settings with:
'#plupload_settings' => array(
'runtimes' => 'html5',
'chunk_size' => '1mb',
),
Logically, this is a place where events should be added considering plupload example stated above, consider for example
init : {
QueueChanged: function(up) {
// Called when the files in queue are changed by adding/removing files
log('[QueueChanged]');
}
expecting something like
'#plupload_settings' => array(
'runtimes' => 'html5',
'chunk_size' => '1mb',
'init' => .......
),
I am not quite sure how to add it?
Or maybe it is better to use some other approach, js?
Thanks,
Vladan
Comments
Comment #1
vladan.me CreditAttribution: vladan.me commentedI am sorry for double post, marking as duplicate