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

After few minutes of uploading image it doesn't show #2382

Open
1 task done
Tsovinar2000 opened this issue Nov 15, 2024 · 6 comments
Open
1 task done

After few minutes of uploading image it doesn't show #2382

Tsovinar2000 opened this issue Nov 15, 2024 · 6 comments
Labels
bug Something isn't working

Comments

@Tsovinar2000
Copy link

Is there an existing issue for this?

Flutter Quill version

No response

Steps to reproduce

  1. Upload image , save in db
  2. After few minutes check the same document with editor the image is not loading

Expected results

it should keep the image always

Actual results

image

Additional Context

Screenshots / Video demonstration

[Upload media here]

Logs
[Paste your logs here]
@Tsovinar2000 Tsovinar2000 added the bug Something isn't working label Nov 15, 2024
@EchoEllet
Copy link
Collaborator

Can you share the console log when this issue occurs?

@Tsovinar2000
Copy link
Author

Can you share the console log when this issue occurs?

Screenshot 2024-11-20 111401

The error is not related with editor. The last line is editor's json. I noticed that the image is not up[loading when I do hard reload , or quit and run project.

@EchoEllet
Copy link
Collaborator

Could you provide a minimal reproducible example? I'm unable to encounter the issue.

@Tsovinar2000
Copy link
Author

Could you provide a minimal reproducible example? I'm unable to encounter the issue.

I found the problem. When I pick the image, the editor turns it into blob and generate localhost url. And that kind of urls are available only on that computer with which image was added. So I just need to catch image adding as a file , upload it to our server, return working url and put it in editor again.

@EchoEllet
Copy link
Collaborator

When I pick the image, the editor turns it into blob and generate localhost url.

AFAIK, we don't use blob image URLs in flutter_quill or flutter_quill_extensions. It's in quill_native_bridge (local branch, not published yet) to download an image but then revoked, and the reference is not used anywhere.

@Tsovinar2000
Copy link
Author

Tsovinar2000 commented Nov 28, 2024

When I pick the image, the editor turns it into blob and generate localhost url.

AFAIK, we don't use blob image URLs in flutter_quill or flutter_quill_extensions. It's in quill_native_bridge (local branch, not published yet) to download an image but then revoked, and the reference is not used anywhere.

Please see the controller value after adding image
[{"insert":"test"},{"insert":{"image":"blob:http://localhost:52372/cd164bfe-ff6f-426d-8c15-dd9492a07227"}},{"insert":"\n"}]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants