add on to the file object

without changing the type of UploadedFile, can i add a field to the file object so my frontend can read it after a file is uploaded
4 Replies
Andrea Peverelli
Andrea Peverelli10mo ago
Are u managing It with a form and formdata?
Elite
Elite9mo ago
No so I need to feed the image into a post request I got that part, but the problem is how do I return the value from the post request onto the frontend or in the file object
JulieCezar
JulieCezar9mo ago
What are you using? UploadThing?
Elite
Elite9mo ago
ye but i jsut asked, it seems unlikely rn have to save to db and then check