myk.eth
TTCTheo's Typesafe Cult
•Created by myk.eth on 7/12/2023 in #questions
Get EXIF data from the file before uploading to upload thing
I am playing around with uploadthing (great stuff, btw). I am wondering how I can do stuff to the actual file that is uploaded (in my case, I'm going to use an npm package to inspect the image's EXIF data) but I'm struggling to find the best place to do this...
I originally thought I could inspect the request on my server before sending the file off to upload thing and then pass the EXIF data in my metadata but I couldnt seem to find the image in the request to my file router (maybe I missed it?)
Now I am thinking of doing something silly on the client side but stopped myself and figured I would ask the supercharged melons in this chat 🧠
ty
6 replies