The function _swfupload_swfupload should set the content-type to javascript. so that the devel module does not append debug information.

Simple patch attached.

Note: This can lead to the "button is greyed out"-Issue, because the returned data is invalid js-code.

Comments

skilip’s picture

Thanks for reporting and applying your patch. This stuff is rather new to me. I'll test this asap.

berdir’s picture

StatusFileSize
new579 bytes

I've just found out that there is a drupal_json which is a simple function that sets the header and outputs the js automatically. New patch attached.

skilip’s picture

Status: Needs review » Closed (fixed)