pqina / vue-filepond

🔌 A handy FilePond adapter component for Vue
https://pqina.nl/filepond
MIT License
1.92k stars 128 forks source link

how to retrieve base64 data in nuxt framework? #212

Closed Soel30 closed 3 years ago

Soel30 commented 3 years ago

how to retrieve base64 data? I'm confused how to retrieve the base64 data, the api I use to upload the image must be base64, and I'm using nuxt. maybe there is an example of its use?

rikschennink commented 3 years ago

We require the issue template to be filled out on all new issues. The issue template helps us collect all the information we need to address your submission efficiently.

Your issue can be classified as an integration question or a question about specific features of FilePond we ask you kindly to submit it on Stack Overflow.


Read more here about turning files into base64 data here: https://pqina.nl/blog/convert-a-file-to-a-base64-string-with-javascript/

You could use the method described in that article to transform files to base64 strings and then upload them using a custom processing method in the FilePond server property. https://pqina.nl/filepond/docs/api/server/#process-1