Question:
I've been trying to do an AJAX upload system and it works perfectly in Chrome, however it doesn't work in firefox. I used JQuery's $.ajax()
function. Do you have any suggestions for what it might be?
I have a normal form that requires a file and AJAX makes a PDF Viewer appear, like:
$.ajax({
url: 'url.php',
method: 'POST',
data: dados,
success: function(data) {
$("#mensagem").append(data);
}
})
And I don't understand why in firefox it doesn't work.
Answer:
Use the following code, where I edited "method" to "type":
$.ajax({
type: "POST",
url: "url.php",
data: dados,
success: function(data){
$("#mensagem").append(data);
}
});