Jacob Homanics
Jacob Homanics18h ago

How to properly reference a file in my database?

Hey ya'll I have a set of "restaurants" which have images associated with them. I've uploaded those images to my deployment's files. Using a field in my restaurant table, how can I reference those images?
3 Replies
Convex Bot
Convex Bot18h ago
Thanks for posting in <#1088161997662724167>. Reminder: If you have a Convex Pro account, use the Convex Dashboard to file support tickets. - Provide context: What are you trying to achieve, what is the end-user interaction, what are you seeing? (full error message, command output, etc.) - Use search.convex.dev to search Docs, Stack, and Discord all at once. - Additionally, you can post your questions in the Convex Community's <#1228095053885476985> channel to receive a response from AI. - Avoid tagging staff unless specifically instructed. Thank you!
Jacob Homanics
Jacob HomanicsOP18h ago
I've tried referencing the CID but that doesn't appear to work
Clever Tagline
Clever Tagline10h ago
I haven't used the file storage yet, but it feels like everything you need to know should be somewhere in this section of the docs: https://docs.convex.dev/file-storage Was that not helpful in your case?
File Storage | Convex Developer Hub
Store and serve files of any type

Did you find this page helpful?