-
-
Notifications
You must be signed in to change notification settings - Fork 305
Open
Labels
good first issueGood for newcomersGood for newcomers
Description
If there's error, still the loading is showing!!
Console Message
Image Tool: uploading failed because of incorrect response: {success: 0}
success: 0 is not working ig!!
My code:
image: {
class: editorPlugins.ImageTool.class,
config: {
uploader: {
async uploadByFile(file) {
const url = await uploadFile(file);
if (url.uploaded) {
alert("hello");
toast.success("Image uploaded successfully!");
return { success: 1, file: { url: url.data.secure_url, data: url.data } };
}
toast.error("Failed to upload image!");
return {
success: 0
};
}
}
}
}
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
good first issueGood for newcomersGood for newcomers
