sogzyy
TTCTheo's Typesafe Cult
•Created by sogzyy on 8/31/2024 in #questions
Convert to webp before upload
I am building an admin page where I can update images and I don't want my client to upload no other image format than webp. I know how to convert images to webp and I have the utility function. How do I intercept the file being uploaded and convert it to webp before uploading? Also, how would I deal with a scenario where multiple images are uploaded ?
12 replies