Last active
August 29, 2015 14:24
-
-
Save gersonfs/38ed2a317a573161fd6f to your computer and use it in GitHub Desktop.
Upload de arquivos com AJAX
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
$.ajax({ | |
url: 'paginaDestino.php', | |
type: 'POST', | |
data: new FormData($('#FormId')[0]), | |
processData: false, | |
contentType: false, | |
success: function (res) { | |
//deu certo | |
}, | |
error: function () { | |
alert('Houve um erro!!!'); | |
} | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment