I have an ajax request responsible for sending a file to the servlet, it is performing the process correctly. But when I update the page the following message is displayed by the browser (When I give an f5):
The page you are looking for has used inserted information. To return to this page you can have all actions taken be re-ordered. Do you want to continue?
I do not want this message to appear for my users.
Ajax request:
$(document).ready(function($) {
$("#formAv").submit(function(event) {
var dados = new FormData(this);
var url = "Avatar";
$.ajax({
url: url,
type: 'GET',
data: dados,
mimeType: "multipart/form-data",
contentType: false,
cache: false,
processData: false,
});
});
});
The message is from the browser itself, I tried to clean the form after sending but it did not solve.