Laravel – AJAX file upload returning null
This is my ajax request: var files = $('#imgur_attach')[0].files; if(files.length > 0){ var fd = new FormData(); // Append data fd.append('file',files[0]); fd.append('_token',$globalToken); $.ajax({ type: "POST", dataType: "json", contentType: false, processData: false, url: host + "/attach-comment-image/" , data: {fd}, Controller: public…