plupload.js broken for drag & drop upload #47

Closed
mcarli opened this Issue Oct 24, 2012 · 0 comments

2 participants

@mcarli

Hi,
the line 10

var url = upload.attributes.url || upload.url,
filename = upload.attributes.filename || upload.filename;

generate this error

TypeError: upload.attributes is undefined

Note: upload.url and upload.filename works correctly

Tested on FF 16 and Chrome 22.0

@nb nb was assigned Jan 7, 2013
@nb nb added a commit that referenced this issue Jan 7, 2013
@nb nb Access upload.attributes properties only if exist
Currently, we try to access upload.attributes.url
even if upload.attributes doesn't exist and this
causes JavaScript to throw a fatal error.

Instead, we need to check if upload.attributes
exists before trying to access it.

See #47.
4db7f6b
@nb nb closed this Jan 7, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment