Problem posting an image to Convex storage. Please help me!!!!
Hiii, I'm building an expo app and I'm stuck in the user profile data form because there is a problem posting an image to Convex storage.
When trying to post the image to the previously generated url the return status code is 400 and no logs generaterd (convex dashboard). I've trying every single possibility (from AI and from the web) and nothing solves the problem😩 . Aprecciate anyone can help me!🙏
3 Replies
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!
The code you shared looks fine to me, so some things to check:
- are generateUploadUrl and getUrl mutations being called, per convex dashboard logs?
- if you console.log the imageurl and look at it in a browser, does it work?
- can you see the image in convex dashboard "storage" page?
by "storage" page i meant the "files" page
Finally I could move on, there were a typo error in the parent compoenent and also somehow the type endpoint didn't recive the file type "image" but "image/jpeg" !
Thanks for your help!🙏
:fixed: