-
Notifications
You must be signed in to change notification settings - Fork 117
Open
Labels
bugSomething isn't workingSomething isn't working
Description
The web UI looks for image URLs ending with jpg|jpeg|png|webp|gif|svg before displaying them on the dashboard.
So it won't work for ones like
https://cdn.discordapp.com/attachments/927784326899331092/1301524272585379932/og.png?ex=6724ca6f&is=672378ef&hm=6584c97a3a83eb4e23505bfdb0b88739c36b494deb9501c60ae9d9bcb652601e&
I think we should check if the value is a URL and image content type is returned in its HEAD response.
Related file:
qdrant-web-ui/src/components/Points/PointImage.jsx
Lines 10 to 21 in 2967646
| function isImgUrl(string) { | |
| let url; | |
| try { | |
| url = new URL(string); | |
| } catch (_) { | |
| return false; | |
| } | |
| if (url) { | |
| return /\.(jpg|jpeg|png|webp|gif|svg)$/.test(url.pathname); | |
| } | |
| return false; | |
| } |
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working