[storage] Is it possible to reference file url instead of storage id in a table?
1. If the message is an image, it's
message.body is a storage id2. when retrieving that message, the convex function uses
await ctx.storage.getUrl(message.body) to convert storage id to file urlI observed that
1. the storage id is something like
kg25kw... and the file url is something like https://<project-id>.convex.cloud/api/storage/ce47fad6-xxxx 2. storage id to file url seems to be a one-to-one mapping
The might be a dumb question but:
- I wonder when creating the message, is it possible to directly store the file url, instead of the storage id?
- In that case I assume when retrieving that message, we can save a network call
ctx.storage.getUrl() Appreciate any thoughts on this

