melishev / strapi-plugin-react-editorjs

📝 Plugin for Strapi Headless CMS, hiding the standard WYSIWYG editor on Editor.js
https://www.npmjs.com/package/strapi-plugin-react-editorjs
MIT License
171 stars 80 forks source link

Image Upload not working #36

Closed dcakmak closed 2 years ago

dcakmak commented 2 years ago

When I try to upload an image via the editor or copy it from another website, I always get the error message "Couldn't upload image. Please try another."

Strapi Version: 4.1.7 Editor.js: 2.0.0

nhvu1988 commented 2 years ago

It's responding 405 Method Not Allowed from the request URL: http://localhost:1337/api/react-editorjs/image/byFile. Seem the plugin has the permission for public users' roles but not sure how to configure it for Strapi users.

melishev commented 2 years ago

Well, the last PR https://github.com/melishev/strapi-plugin-react-editorjs/pull/44 should solve your problem, thanks for the input - @nhvu1988