Let's create an example module, which will help developers to start using Plupload integration.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

budalokko’s picture

Status: Active » Needs review
FileSize
2.66 KB

Attached patch replicates PlUpload test included in 7.x-1.x branch of the module with the exception that it doesn't create yet a record in file_managed_table.

This could be added when Create helper function that will save uploaded files to file_managed table issue is worked on.

I think it could be useful to add something like this to widget settings to give faster guidance to people but didn't add in the patch to keep in sync with 7.x:

'#plupload_settings' => array(
  'max_file_size' => '100mb',
  'chunk_size' => '4mb',
),
slashrsm’s picture

Status: Needs review » Needs work

There is some trailing whitespace that should be removed. Other than that patch looks OK. Thank you!

budalokko’s picture

Ouch. Attached patch has a better code style.

budalokko’s picture

Status: Needs work » Needs review
slashrsm’s picture

Status: Needs review » Reviewed & tested by the community

Looks good to me.

  • budalokko committed 861c753 on 8.x-1.x
    Issue #2245945 by budalokko: Create plupload_example module
    
budalokko’s picture

Shouldn't we separate the example in a different module on the 7.x branch too?

budalokko’s picture

Status: Reviewed & tested by the community » Fixed

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.