- π¨π¦Canada OMD
I've tried this with 9.5.8 and without the patch and I can confirm I'm still hitting php limit of 10 MB of file uploads.
- Status changed to Active
over 1 year ago 10:56am 23 April 2023 - πͺπΈSpain budalokko Girona
Did you set `chunk_size` and `max_file_size` in your `#plupload_settings`? Something like this should work:
$form['plupload'] = [ '#type' => 'plupload', '#title' => 'Plupload', '#upload_validators' => [ 'file_validate_extensions' => ['zip'], ], '#plupload_settings' => [ 'chunk_size' => Bytes::toNumber(ini_get('upload_max_filesize')) * 0.9 . 'b', 'max_file_size' => '1GB', ], ];
Those are necessary to upload files beyond `upload_max_filesize` PHP setting.
- π¨π¦Canada OMD
I'm using the Plupload File Widget with the Plupload Integration Module. Neither module seem to have any configuration. I'm not familiar with #plupload_settings. Can you tell me where to find those?
- πͺπΈSpain budalokko Girona
If you are using Plupload File Widget and the issue appears on a field you added to an entity then there's no need to mess with #plupload_settings.
It should work without code, at least it does for me :)
I'll try again to reproduce this week, can you please ensure through the UI "Maximum upload size" is empty or big enough in the field configuration, and send your setup: PHP version, upload_max_filesize and post_max_size from /admin/reports/status/php, both modules version and Plupload library version?
- π¨π¦Canada OMD
I'm uploading a 500 MB files as a test. I have my max upload size set at the field config level at 1000 MB, it looks like fails at 10 MB which is the PHP limit, the exact size is not given, but it fails quite early in the progress bar. Also it fails quietly and doesn't generate an error message. It also reminds me of the 10 MB limit below the field in both the field configuration form and the add content form, even if plupload file widget is chosen on the form.
PHP 8.1.17
upload_max_filesize 30 MB
post_max_size 10 MB - First commit to issue fork.
- πΊπΈUnited States scott_earnest
Drupal change record for D11:
file_validate and related functions are deprecated and replaced with file.validator service and Constraint plugins
https://www.drupal.org/node/3363700 βThis affects this file:
plupload_widget/src/Plugin/Validation/Constraint/WithoutPhpLimitsFileValidationConstraintValidator.phpNew patch created here:
plupload_widget_fix_validator_2883893-23.patch β