Get PDF with UploadThing

Hi, I'm using upload thing to store some pdfs and there is a point in my application where i want to get the pdf object to store it in my file system. I'm using this to get the pdf (const oneUrl = await utapi.getFileUrls()) but this only gives me the url and the key. Is there a way i can get the file without needing to fetch the file from the url?
2 Replies
Rhys
Rhys15mo ago
Are you trying to do a bulk download of files in upload thing rather then fetching them one by one? Is that what your question is?
lacosta
lacostaOP15mo ago
No i just want to download to my filesystem a single pdf that was previously selected
Want results from more Discord servers?
Add your server