#snuglife
TTCTheo's Typesafe Cult
•Created by huij on 10/8/2024 in #questions
metadata middleware
I'm also curious how to get data from the component to the
onUploadComplete
function, because I want data from both the upload and the file.
One brute force option is to upload the file then fetch it, but the option I went with (I don't like it) is to use the upload button's onChange handler to save the file data in state (and run the upload function), and then in onClientUploadComplete()
I should have access to both the file data and the upload data.2 replies
TTCTheo's Typesafe Cult
•Created by #snuglife on 9/3/2024 in #questions
Uploading a preview image of a PDF along with the PDF
Interesting, thanks! I am going with pdf.js and it went well but this looks worth a look too, appreciate it 🙂
7 replies
TTCTheo's Typesafe Cult
•Created by Rajan on 7/6/2024 in #questions
Unexpected error in delete-image server action in Theo's modern react tutorial
I'm encountering the same issue, and I'm not sure yet why the full page image component is rerendering (update: the modal page is, as are its children)
3 replies
TTCTheo's Typesafe Cult
•Created by Rajan on 7/6/2024 in #questions
Unexpected error in delete-image server action in Theo's modern react tutorial
hey, did you end up discovering the issue here?
3 replies