samatar2815
samatar2815•11mo ago

Invalid storage path

I have this error when i want to display images: "Invalid storage path: "kg26fzhvwsnmqdd2xb87jvjfd16mc7p7" is not a valid UUID string."
No description
No description
4 Replies
erquhart
erquhart•11mo ago
You can generate a url to display an image via ctx.storage.getUrl(storageId) https://docs.convex.dev/file-storage/serve-files#generating-file-urls-in-queries
Serving Files | Convex Developer Hub
Files stored in Convex can be served to your users by generating a URL pointing
Michal Srb
Michal Srb•11mo ago
@samatar2815 erquhart is right. Can you share what code gives you this error? Where did you got it from? (Template, docs, open source project, ai bot?)
FleetAdmiralJakob 🗕 🗗 🗙
Maybe the problem is not that the string is valid but rather that the string has not the correct type
ian
ian•11mo ago
it looks like you're using a storage _id in a URL that expects a UUID generated with getUrl. if you right-click the download button on the files page you can see a valid URL

Did you find this page helpful?