Summary
The ppom_file_upload_chunk_size filter (default 1mb) has no effect — the uploader always splits files into 2 MB chunks. Stores cannot control the chunk threshold.
Root cause
js/file-upload.js hardcodes chunk_size: '2mb' in the plupload config and never reads the PHP-provided file_input.chunk_size. The render path computes the filter value (templates/render-fields.php:641) but the JS ignores it. Introduced by the fields-modal refactor (#572, 34742e0); present in the 34.0.x line.
Impact
Proposed fix
Use the PHP-provided value: chunk_size: file_input.chunk_size || '2mb' in js/file-upload.js.
Note
This issue was originally filed conflated with a separate multi-chunk upload failure. That is a distinct regression (different root cause and commit) tracked in #660; this issue now covers only the chunk-size configuration defect.
Summary
The
ppom_file_upload_chunk_sizefilter (default1mb) has no effect — the uploader always splits files into 2 MB chunks. Stores cannot control the chunk threshold.Root cause
js/file-upload.jshardcodeschunk_size: '2mb'in the plupload config and never reads the PHP-providedfile_input.chunk_size. The render path computes the filter value (templates/render-fields.php:641) but the JS ignores it. Introduced by the fields-modal refactor (#572,34742e0); present in the 34.0.x line.Impact
Proposed fix
Use the PHP-provided value:
chunk_size: file_input.chunk_size || '2mb'injs/file-upload.js.Note
This issue was originally filed conflated with a separate multi-chunk upload failure. That is a distinct regression (different root cause and commit) tracked in #660; this issue now covers only the chunk-size configuration defect.