I'm trying to send some data through ajax post, I tried serializ but I keep getting an error the filename doesn't exist. Form data
$('#send #submit').on('click', function(e){
e.preventDefault();
$.post( "send.php", $("#bend").serialize())
.done(function( data ) {
alert( "Data Loaded: " + data );
});
});
When you click submit first thing I try is to get file size I get
Warning: getimagesize(): Filename cannot be empty
$dateityp = GetImageSize($_FILES['datei']['tmp_name']);