If i submit using <input:text>, i can see the result but if i use <input:file>. i cannot upload.
jquery code;
// JavaScript Document
$(document).ready(function(){
$("#myformcom").submit(function(){
var str=$(this).serialize();
//var result;
$.ajax({
type: "POST",
url: "uploadfiles.php",
data: str,
success:function(msg)
{
$("#error").ajaxComplete(function(event,request,settings)
{
if(msg=='Successfully Submitted')
{
$(this).html(msg);
}
else{
$(this).html(msg);
}
return true;
});
}
});
return false;
});
});