r/javascript • • Sep 16 '21

How to upload files from your HTML form using Base64 encoding

https://formcarry.com/blog/how-to-upload-files-as-base64/

[removed] — view removed post

0 Upvotes

4 comments sorted by

•

u/Ustice Sep 17 '21

Thanks for your contribution! We’re a large community, and in order to keep things organized and easier to find, we keep this subreddit mostly focused on professional-level Javascript posts. Your post would be more useful to newer members of our community, and therefore it should be posted to /r/LearnJavascript instead.

→ More replies (1)

5

u/anlumo Sep 16 '21

HTTP can handle binary data just fine, why would you do such a thing?

3

u/thatisgoodmusic Sep 17 '21

Why though? Base64 is 33% bigger than just plain binary. It makes no sense to intentionally increase the size of the payload you are sending to your server.