I am trying to pass an image and a title field value to PHP, I usually process file uploads straight with PHP using the $_FILES array, I am not sure how to create/pass this
You can use jQuery file upload plugin
$('#imgOne').change(function(){ $.ajaxFileUpload({ fileElementId: 'imgOne', url: "../Controller/ProductController.php", dataType: 'json', success: function(response) { //Success Code Here }, error: function() { //Error Code Here } }); });