Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"Uncaught ReferenceError: vArrayPageItems is not defined" #15

Closed
jeffreykemp opened this issue Dec 28, 2016 · 2 comments
Closed

"Uncaught ReferenceError: vArrayPageItems is not defined" #15

jeffreykemp opened this issue Dec 28, 2016 · 2 comments
Assignees
Labels

Comments

@jeffreykemp
Copy link

Expected behavior

files uploaded without error

Actual behavior

after selecting or dropping a file into the dropzone, the file is not uploaded; console shows the following trace:

apexdropzone.min.js:2Uncaught ReferenceError: vArrayPageItems is not defined
at Object.buildPageItemValuesArray (apexdropzone.min.js:2)
at Object.uploadDzFiles (apexdropzone.min.js:3)
at c.f.uploadFiles (apexdropzone.min.js:12)
at c.processFiles (dropzone.min.js:formatted:882)
at c.processFile (dropzone.min.js:formatted:870)
at c.processQueue (dropzone.min.js:formatted:863)
at dropzone.min.js:formatted:769
buildPageItemValuesArray @ apexdropzone.min.js:2
uploadDzFiles @ apexdropzone.min.js:3
f.uploadFiles @ apexdropzone.min.js:12
c.processFiles @ dropzone.min.js:formatted:882
c.processFile @ dropzone.min.js:formatted:870
c.processQueue @ dropzone.min.js:formatted:863
(anonymous) @ dropzone.min.js:formatted:769

Steps to reproduce the issue

Install Dropzone 1.9.5
Select, or drag-and-drop, a file into the dropzone

APEX version (4.2.6 / 5.0.3)

5.0.4

Used web server / version and platform (ORDS 3.0.3 / Tomcat 7 / Apache 2.4 / Linux x64)

Apache 2.4

Used web browser / version and platform (Chrome 48 Mac / Firefox 44 Windows)

Chrome 55 Windows

@jeffreykemp
Copy link
Author

jeffreykemp commented Dec 28, 2016

Need to fix apexdropzone.js:

// build array for page item values
buildPageItemValuesArray: function(pPageItemsArray) {
    var vArrayPageItemValues = [];
    for (var i = 0; i < pPageItemsArray.length; i++) {
        vArrayPageItemValues.push($v(vArrayPageItems[i]));
    }
    return vArrayPageItemValues;
},

vArrayPageItems should be pPageItemsArray here.

@Dani3lSun Dani3lSun self-assigned this Dec 28, 2016
@Dani3lSun Dani3lSun added the bug label Dec 28, 2016
@Dani3lSun
Copy link
Owner

Hey @jeffreykemp
sorry for that silly bug, fixed in DEV, hope to release a bugfix release today...

Dani3lSun pushed a commit that referenced this issue Dec 28, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants