Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to pass temporary url #249

Open
Complexlity opened this issue May 28, 2024 · 0 comments
Open

How to pass temporary url #249

Complexlity opened this issue May 28, 2024 · 0 comments

Comments

@Complexlity
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant