Currently the filesize limit of plupload is always set to it's default - would be nice if it always matches to the settings of the media module.

Categorizing as bug because the current behaviour really could confuse people.

Proposed resolution

Adding medias filesize limit to the js settings of media to handover the setting to the plupload settings when creating a plupload instance.

Remaining tasks

Review patch.

User interface changes


API changes


#1 media-forward-file-size-limit-to-plupload-1356760-1.patch758 bytesdas-peter
PASSED: [[SimpleTest]]: [MySQL] 11 pass(es). View
media-forward-file-size-limit-to-plupload.patch1.53 KBdas-peter
PASSED: [[SimpleTest]]: [MySQL] 11 pass(es). View
Members fund testing for the Drupal project. Drupal Association Learn more


das-peter’s picture

758 bytes
PASSED: [[SimpleTest]]: [MySQL] 11 pass(es). View

Sorry sloppy patch creation :| Here's the correct patch.

Dave Reid’s picture

I swear we're already putting a field's maximum file size in JavaScript. I'm not sure why we'd need to do this again...

LoMo’s picture

Related? (Post-install forum discussion of issues with Media)
(Symptom: "upload file size must be less than 0 bytes")

drzraf’s picture

where is this field's

maximum file size in JavaScript

so that plupload can use it ?

SocialNicheGuru’s picture

no longer cleanly applies