'How to send input type file value into base64 with AMP?

Is there a way to convert an input type file to base64 when sending it into our endpoint on amp?

I have no idea to do this with amp pages.

<input type='file'>


Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source