plupload icon indicating copy to clipboard operation
plupload copied to clipboard

w is undefined error when trying upload png image

Open iguana007 opened this issue 15 years ago • 11 comments

I get an error when I try to upload a PNG image via plupload. When I click button Start Upload this error occurs in Firefox Firebug console: w is undefined - in: plupload.full.js (line 2) I am running version: 1.4.3.2

iguana007 avatar Jun 09 '11 13:06 iguana007

It is running fine with JPG files, but not with PNG.

iguana007 avatar Jun 09 '11 13:06 iguana007

I've noticed this when you're trying to perform client side image resizing. I turned that off and now .pngs now upload

skirmish avatar Jun 16 '11 18:06 skirmish

Than there is a bug in image resizing of PNGs?

iguana007 avatar Jun 17 '11 13:06 iguana007

Hmm, is there a solution to this? I'm getting the same error for some pngs and not others. I tried using different filename cases and png8 as well as png24. Not sure why it breaks on some PNGs but not all PNGs.

chulunus avatar Jul 14 '11 22:07 chulunus

Yeah I can confirm as well. Anyone got a workaround?

LukeDurrant avatar Jul 20 '11 04:07 LukeDurrant

I've confirmed this as well and have had reports that the same happens with Chrome. From previous local tests and testing on the Plupload site it looks like the issue is in the [plupload.full.js] script and not elsewhere. Using a specific method rather than the 'full' auto-selector does not present the same problem. Changing the order of the pre-selects (i.e. runtimes: "html5,flash,silverlight,gears,browserplus") also did not seem to help.

Joe-Flash avatar Jul 21 '11 22:07 Joe-Flash

i have the same issue with this

mschonvogel avatar Jul 23 '11 13:07 mschonvogel

Strange, but disabeling Firebug it was possible to run in firefox/mac....

vm57us avatar Aug 02 '11 10:08 vm57us

I've traced the source of the problem and discovered that the error occurs when 'resize' is applied. This only occurs while resizing PNG images, and no other file type. Looking at the site examples, simply removing the line that looks like the following will remove the problem until the plugin is updated. resize: {width: 320, height: 240, quality: 90},

Joe-Flash avatar Aug 02 '11 15:08 Joe-Flash

https://github.com/moxiecode/plupload/issues/315 duplicates this issue

eliotsykes avatar Aug 14 '11 11:08 eliotsykes

Do you guys still get png related error with github version of html5 runtime? I remember this is has been fixed a while ago...

jayarjo avatar Sep 07 '11 09:09 jayarjo