fetch doesn't support blob images which are CORS. #8422
Labels
package:image
package:upload
resolution:expired
This issue was closed due to lack of feedback.
squad:core
Issue to be handled by the Core team.
status:stale
type:bug
This issue reports a buggy (incorrect) behavior.
📝 Provide detailed reproduction steps (if any)
isLocalImage
andfetchLocalImage
will run frompackages/ckeditor5-image/src/imageupload/utils.js
, which will in turn callfetch( imageSrc )
.imageSrc
in this case is likeblob:https://udaychy.github.io/eea1fe2d-7dcf-48b9-a65c-31306a57ee70
✔️ Expected result
The image should be uploaded/gracefully fail.
❌ Actual result
Getting an alert from fetch API that,
TypeError: Failed to fetch
and in console we're getting detailed error that:So basically
fetch
API won't work for CORS blob.📃 Other details
EasyImage
If you'd like to see this fixed sooner, add a 👍 reaction to this post.
The text was updated successfully, but these errors were encountered: