editor-js / editor-js/image

How to pass temporary url

Open
#249 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
285
Forks
307
PR merge metrics
No merged PRs in 30d

Description

I have set up and uploader that returns a url and this works well. However, I don't want to have to upload the image each time the user inserts or removes. I want to use a temporary url

```
let tempFileUrl = URL.createObjectURL(file);
```
This creates a url: "blob:http://localhost......". This works when working with DOM elements but If I pass this to the image `uploadByFile` result

`
return {
success: 1,
file: tempFileUrl
}
`

It just keeps loading

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.