Skip to content
This repository has been archived by the owner on May 19, 2020. It is now read-only.

Image upload - Uncaught TypeError: Cannot read property 'apply' of undefined #1088

Open
georg90 opened this issue May 16, 2016 · 3 comments
Open

Comments

@georg90
Copy link

georg90 commented May 16, 2016

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
@TheBrenny
Copy link
Member

So what's the error here?

@georg90
Copy link
Author

georg90 commented Jul 12, 2016

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.

@TheBrenny
Copy link
Member

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...

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants