21 Replies
Hi! yeah, you should use https://uploadstuff.dev/
you can read more in our docs here if uploadstuff doesn't work for you: https://docs.convex.dev/file-storage/upload-files , but uploadstuff is the easiest way to solve this quickly
Uploading and Storing Files | Convex Developer Hub
Files can be uploaded by your users and stored in Convex.
Danggg thats dope
Full-stack dream is happening
with lot of easiness
Thank you
that's the hope!
no problem, good luck. let us know if we can help any more
Of course started developing edit user profile right now 🙂

Error says that i shouldnt pass props to 'generateUploadUrl' even tho this is my function

Even tho, again

This is Uploadstuff doc
@Michal Srb might be able to weigh in.
Srb as me
Got the id in the DB somehow.. It was the Uploadstuff docs issue. Looked up at node modules and found it.... Instead onCliendUploadComplete, its onUploadComplete
ahah! yeah, we might need a docs update here. thanks for the note @ckobasti !
You're welcome!
Btw how to get the picture now in the frontend? i got the ID in db
While you here haha
Serving Files | Convex Developer Hub
Files stored in Convex can be served to your users by generating a URL pointing
@ckobasti the first issue I assume was solved by making the argument into a function, like this:
?
Thanks for reporting the other issue with
onUploadComplete
, will fix!This works! thank you! still cannot get the image from db.. Is the ID in my db even the ID for image or for storage? how it works
Trying to get things in my head with convex docs but its not the same as in my project
You want to pass the storage ID (type
Id<"_storage">
) to getUrl
, like this:
await ctx.storage.getUrl(storageId)
You can do this in a query/mutation or action. It will give you a URL you can pass to an img
tag.Done. Thank you very much !!!!!
Btw are you from Serbia?
Nevermind.. My next question is, how to modify dropzone? I'm sorry for too many questions, but i wanna learn and use it for the rest of my life 🙂
I want my UI on it
And modifying it in node modules doesnt work somehow
I am Czech 🙂
The dropzone question was answered in another thread.