Image upload - Uncaught TypeError: Cannot read property 'apply' of undefined
Summary
When uploading an image to a post (drag&drop) it takes a long time (even for a small file) until the file is uploaded. Then the js console hits the error above
zepto.js:2 Uncaught TypeError: Cannot read property 'apply' of undefined
j @ zepto.js:2
Expected Behaviour
- select image
- drag image to post
- upload without error
Actual Behaviour
- select image
- drag image to post
- get zepto.js error in console
- file is uploaded
Context details (if applicable)
- Anchor version: 0.9.12 (latest release)
- Server setup: Ubuntu 14.04, apache2, Chrome v50
So what's the error here?
Error message is attached above.
The workaround for now is to open up the developer console, check if "uploaded" message appears and then click on post/update to save the post. If you click on save/update before that, the image is not uploaded successfully.
I would suggest getting a popup or modal window to show a successful upload, instead of this workaround.
Sorry, I really meant issue, but you just cleared that up.
I'm not quite sure what happened to the popups, but maybe if a user is uploading something, disable the save button? Or we have it upload in the background - but I'm not sure how that would work...