dannyeloD
Convex Community2y ago
42 replies
dannyelo

Need help using the uploadstuff api

Hello,
I'm trying to follow the example in the uploadstuff website.
1. I create a convex/files.ts file and paste the code provided.
2. Then I paste the code in the UploadButton to my component.

Instantly I'm getting errors in the convex console.

ctx.db.insert('listingImages', {
  listingId: args.listingId,
  storageIds: args.uploaded.map(({ storageId }) => storageId),
  // ...
})


In this code there is no uploaded arg in the args: property. Don't really understand what I need to pass.

I attach an image with the errors.
The someId error is not a problem, I get it.

Thank you!
image.png
Was this page helpful?