How to convert file to base64 in JavaScript?

前端 未结 7 2044
醉话见心
醉话见心 2020-11-22 06:34

Now I\'m getting File object by this line:

file = document.querySelector(\'#files > input[type=\"file\"]\').files[0]

I need to send thi

7条回答
提交回复
热议问题