ckeditor-nuxt icon indicating copy to clipboard operation
ckeditor-nuxt copied to clipboard

Issue After Successfully returning Image Upload URL

Open davestar057 opened this issue 4 years ago • 1 comments

Hi,

I am having an issue - where I can use thre simple upload, I have an API endpoint that successfully stores the image in a Amazon s3 bucket and returns public URL ... however, I am getting this error:

Uncaught (in promise) CKEditorError: can't access property "default", e is undefined Read more: https://ckeditor.com/docs/ckeditor5/latest/framework/guides/support/error-codes.html#error-can't access property "default", e is undefined

I am use the default/example setup - but obviously with my own endpoint for image upload. Returns 200 and sucessfully returns valid image URL.Not sure why its getting this error>? Any help much appreciated

davestar057 avatar Dec 22 '20 17:12 davestar057

Hi,

in your backend you have to return sth like this:

 return {"url": your_amazon_public_url}

Write back if it helped.

blowstack avatar Dec 23 '20 19:12 blowstack