Last active
January 18, 2019 15:49
-
-
Save parzibyte/936dd10deef3332b427d3cdd76a65490 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Del lado del cliente no hacer esto: | |
xhr.send(encodeURIComponent(foto)); //Codificar y enviar | |
// Sino en cambio, esto: | |
xhr.send(JSON.stringify({"foto": foto, "nombre": document.querySelector("#inputNombre").value})); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment