Image Tool: uploading failed because of Object
See original GitHub issueI am using editor js and the image module with Javascript. The image button appears on the editor on my page, however, it will not fully upload the photo. I get the message “cannot upload an image. Try another.” In the console, I get the following message:
I cannot find anywhere online that gives a solution to this issue. Here is my code in the HTML body, please tell me what is going wrong:
<script>
const ImageTool = window.ImageTool;
</script>
<script>
const editor = new EditorJS({
holder: 'editorjs',
tools: {
image: {
class: ImageTool,
config: {
endpoints: {
byFile: 'http://localhost:8008/uploadFile', // Your backend file uploader endpoint
byUrl: 'http://localhost:8008/fetchUrl', // Your endpoint that provides uploading by Url
}
}
}
}
})
</script>
Issue Analytics
- State:
- Created 2 years ago
- Comments:6 (3 by maintainers)
Top Results From Across the Web
@editorjs/image, "Can't upload image. Please try another." ...
In the console, "POST HTTP://localhost:3000/ 404 (Not Found)" and, "Image Tool: uploading failed because of" and a body object. See the attached screenshot ......
Read more >editorjs image plugin return image url is not picked up
I configured editorjs into my application. I installed image plugin on it so that I can upload an image to the server.
Read more >editorjs/image
Image Tool. Image Block for the Editor.js. Features. Uploading file from the device; Pasting copied content from the web; Pasting images by ...
Read more >Upload image in editor.js & understanding the ... - YouTube
Upload image in editor.js & understanding the concept of deleting unused file ... An error occurred while retrieving sharing information.
Read more >Image uploads: unsupported items
When uploading .svg or .dxf files into Cricut Design Space, you may receive the following error message: "Your file includes unsupported items.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Can you show your server response?
SAME ISSUE!!!
<> JS image: { class: ImageTool, config: { endpoints: { byFile: ‘http://127.0.0.1:5000/upload-image/’, // Your backend file uploader endpoint byUrl: ‘http://127.0.0.1:5000/upload-image/’, // Your endpoint that provides uploading by Url } },