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

Issue After Successfully returning Image Upload URL #11

Open
davestar057 opened this issue Dec 22, 2020 · 1 comment
Open

Issue After Successfully returning Image Upload URL #11

davestar057 opened this issue Dec 22, 2020 · 1 comment

Comments

@davestar057
Copy link

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

@blowstack
Copy link
Owner

Hi,

in your backend you have to return sth like this:

 return {"url": your_amazon_public_url}

Write back if it helped.

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

No branches or pull requests

2 participants