Invalid storage path
I have this error when i want to display images: "Invalid storage path: "kg26fzhvwsnmqdd2xb87jvjfd16mc7p7" is not a valid UUID string."


4 Replies
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-queriesServing Files | Convex Developer Hub
Files stored in Convex can be served to your users by generating a URL pointing
@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?)
Maybe the problem is not that the string is valid but rather that the string has not the correct type
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