<input id="Screens[0].BackgroundImagePath" name="Screens[0].BackgroundImagePath" class="form-control" type="file" />
<script type="text/javascript"> // debugger; //alert(attFile); $(".download").click(function () { debugger; var attFile = $('#Screens\\[0\\]\\.BackgroundImagePath')[0].files; var formData = new FormData(); formData.append($("#form").serialize(),attFile); alert(attFile); $.ajax({ type: "POST", url: "/MFinity/Generate", //data: JSON.stringify(MFinityAPIController), data:(formData), //data:$("#form").serialize(), success: function (data, status, xhr) { alert("The result is : " + status); }, error: function (xhr) { alert(xhr.responseText); } }); }); </script>
public string Generate(AppviewModel Application) { }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)