| Server IP : 209.209.40.120 / Your IP : 216.73.217.112 Web Server : Microsoft-IIS/10.0 System : Windows NT NEWWWW 10.0 build 17763 (Windows Server 2019) i586 User : NEWWWW$ ( 0) PHP Version : 8.3.30 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : C:/HostingSpaces/admin/penpaleurope.com/backup/app/Penpal/ |
Upload File : |
$(document).ready(function (e) {
$("#idForm").submit(function(e) {
var url = "profilePicture.php"; // the script where you handle the form input.
$("#uploadResult").empty();
$('#loading').show();
$.ajax({
type: "POST",
url: url,
contentType: "multipart/form-data",
data: new FormData(this), // Data sent to server, a set of key/value pairs (i.e. form fields and values)
contentType: false, // The content type used when sending data to the server.
cache: false, // To unable request pages to be cached
processData:false,
success: function(data)
{
$('#loading').hide();
$("#uploadResult").html(data); // show response from the php script.
}
});
e.preventDefault(); // avoid to execute the actual submit of the form.
});
});