N
Nuxt2mo ago
Furnaxe

Save image in Nuxt 3

I'm trying to save an image directly to a form upload, on other frameworks I temporarily store the image in a folder then move the image if the form was validated to the public folder but I guess this is not the right solution, does anyone know of a good tuto or explain the right way to do this to achieve what I want? Thanks
2 Replies
manniL
manniL2mo ago
use nitro's storage api for that 👍
Furnaxe
Furnaxe2mo ago
I've found the solution for the preview, but can I pass an image (type: File) in a form with my other data? Because all the tutorials I've seen use readMultipartFormData and only send files, whereas I'd like to do both.