Shum
Shumβ€’13mo ago

Uploading a photo to profile

Hi, I am creating a profile page and I want the user to be able to upload their photo along w. their user details. Could anyone provide me some guidance on how to upload a photo along w. the other data (name, dob, and email) to the convex db?
10 Replies
erquhart
erquhartβ€’13mo ago
Welcome! Do you have a project setup on Convex? Eg., have you figured how to store basic data in convex, use queries and mutations, etc.
Shum
ShumOPβ€’13mo ago
Hi @Equitab , yes i do have the project setup on convex, i am able to send in strings and number. However, when it comes to images and files i am a bit unsure
erquhart
erquhartβ€’13mo ago
I'd recommend starting with the storage docs, they do a good job of breaking down how to upload, store, serve, and delete files and images: https://docs.convex.dev/file-storage
File Storage | Convex Developer Hub
Store and serve files of any type.
erquhart
erquhartβ€’13mo ago
They also include links to file storage examples. Here's a simple file storage app using queries and mutations: https://github.com/get-convex/convex-demos/tree/main/file-storage
GitHub
convex-demos/file-storage at main Β· get-convex/convex-demos
Demo apps built on Convex. Contribute to get-convex/convex-demos development by creating an account on GitHub.
erquhart
erquhartβ€’13mo ago
I also posed your question to the AI bot, here's the response: https://discord.com/channels/1019350475847499849/1229904734387961907
ian
ianβ€’13mo ago
FleetAdmiralJakob πŸ—• πŸ—— πŸ—™
Hi, I used Uploadthing in the past. What is Uploadstuff? What improvements brings it?
ian
ianβ€’13mo ago
It is written on convex and the source code is available. It was a little project built by @Michal Srb to showcase file uploading with convex. I haven’t used it recently but the docs are great
FleetAdmiralJakob πŸ—• πŸ—— πŸ—™
Ok, just curious for future decisions on which one is the best for my convex app
ian
ianβ€’13mo ago
I’d use uploadstuff for convex- and let us know if there’s anything to improve

Did you find this page helpful?