Is there anyway of submitting a file uploaded via Ajax/json/jQuery?
is there a plug in at all? if I want to submit other data its easy:
$.ajax(
{
type: "POST",
url: "http://www.test.php",
dataType:"json",
data: {serial: $('[name=txtLogin]').val()},
success: function(data)
{
... do some stuff ...
}
});
But I'm guessing that file uploads are a different story. I'd like to pass information from a variety of fields such as textboxes, radio and check boxes as well as the file itself.
Any ideas guys?