I am not sure how to set up a form and submit it through a multipart/form-data. I need to be able to upload text and an image at the same time. My form
[php]
$.ajax({ //get public shouts
type: "post",
url: "/api/v1/shouts",
data: form,
contentType: 'multipart/form-data',
success: function(data){
$('#login').remove();
alert("Congratulations, your shout has been sent!");
}
});
}[/php]