DEV Community

Discussion on: How to upload files from your HTML form using Base64 encoding

Collapse
 
tbroyer profile image
Thomas Broyer

Why would you use base64 when you can use FormData?
Looks more like an argument against using refine to begin with.

Collapse
 
mlhekinci profile image
Melih Ekinci

Hi Thomas, This is just a simple example written to show what base64 is and how it is used. Of course there are different ways to do this. refine does not only upload files with base64, this is just one of its features.

Collapse
 
727021 profile image
Andrew Schimelpfening

I agree, this is what FormData is for. base64 generally shouldn’t be used for file uploads.