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 ]


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

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

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...

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

where is this field's

maximum file size in JavaScript

so that plupload can use it ?

no longer cleanly applies