anchor-cms icon indicating copy to clipboard operation
anchor-cms copied to clipboard

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

Open georg90 opened this issue 9 years ago • 3 comments

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

georg90 avatar May 16 '16 02:05 georg90

So what's the error here?

TheBrenny avatar Jul 12 '16 10:07 TheBrenny

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.

georg90 avatar Jul 12 '16 10:07 georg90

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

TheBrenny avatar Jul 12 '16 10:07 TheBrenny