DEV Community

Discussion on: The Better Way of Sending Data to the Backend

Collapse
 
birowo profile image
birowo

how about using ajax. ajax can upload binary data. my example, upload image file:
gitlab.com/birowo/latihan/-/blob/m...
image will previewed and compressed before upload. all information about image : file name etc. put on url

Collapse
 
manas_dev profile image
Manas Mishra

AJAX could be a good alternative too for uploading binary data.