-
Notifications
You must be signed in to change notification settings - Fork 73
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
Images not working when "Export to Link" was used #53
Comments
Some more additional infos: Rooms, scenes and files are stored in the mongo: And using "rooms" only, files working as aspected, until a scene with this file is created.. than files won |
Hello again, I did a little more digging into it. My knowledge of Javascript frameworks etc are limited... but maybe these are the reasons, why files are not working with "http storage" as soon they are is in scenes: As I said, my knowledge of JS etc. is limited, so, sadly, I won't be able to proof or fix this in a affordable time. But maybe, this was helping ... |
@Someone0nEarth I'm unable to even export the link, not sure whats wrong with my config, heres the error message: |
Hey @farapholch I would bet, changing the backend GET and POST URL pathes too |
@Someone0nEarth thank you so much! :) Its now working. |
@alswl I made some changes that I believe can solve this issue and have submitted a PR. Init storageBackend before use it by woremacx · Pull Request #30 · alswl/excalidraw |
Thanks @woremacx !! That fixed it! Now the images are working!! @alswl Please pull woremacx fix :D |
@woremacx |
Now the new version is released, and the demo site( https://excalidraw-production-4d27.up.railway.app/) is upgraded. Thanks a lot to @Someone0nEarth and @woremacx . |
Thanks @alswl for great hack, and @Someone0nEarth for docker-compose files. |
First things first: Thanks for your work!!
I got the collaboration mode to work, but there are some anomalies when dealing with images:
Images working fine in the collaboration mode:
Until someone did a save using "Export to Link". When using the link, only a placeholder for the image will be shown:
When using the room-share link after doing the "Export to Link" the images wont be shown too.
When doing a "Save to disk", the images are referenced in "elements", but the "files" are empty.
Ways to reproduce:
1) Export to Link
2) Export to Link after starting a Live Collaboration
3) Export to Link before starting a Live Collaboration
Summary
As soon as a "Export to link" was done, images will be shown only as a placeholder. Beside the one special case in 3), when a collaboration session was`t started, it will work until the next "Export to link" for the collaboration mode.
Btw: When restarting all the services, images will still be shown when using the collaboration link (until the drawing was "exported to link"). So there is some kind of working image persistence.
I'm using
alswl/excalidraw:v0.17.0-fork-b2
,alswl/excalidraw-storage-backend:v2023.11.11
andexcalidraw/excalidraw-room:sha-49bf529
. But same behavior when usingexcalidraw/excalidraw-room
.I tried this with redis, postgres and mongodb.
The text was updated successfully, but these errors were encountered: