title: Krajee bootstrap-fileinput with Mvc razor
body: <p>I want to use Krajee bootstrap-fileinput (<a href="http://plugins.krajee.com/file-input" rel="nofollow">http://plugins.krajee.com/file-input</a>) with Mvc razor, Please help me out with the process to to upload images to server and json result from actionResult.</p>
  
  <p>I have just included a required js and css files in my view page and added a line </p>
  
  <pre><code>&lt;input id="input-702" name="kartik-input-702[]" type="file" multiple="true" class="file-loading"&gt;
  </code></pre>
  
  <p>and a script </p>
  
  <pre><code>$("#input-702").fileinput({
      uploadUrl:"@Url.Action("upload","Home")",
      uploadAsync: true,
      minFileCount: 1,
      maxFileCount: 5,
      overwriteInitial: false,
      initialPreview: "",
      initialPreviewConfig:"",
      uploadExtraData: ""
  });
  </code></pre>
  
  <p>This line is getting formatted and showing a drag and drop effect and select file button.The file selection and Thumbnail creation is working properly but on upload action there is the  (fileinput,js) function "ajaxSubmit" which use to post the content to HomeController  ActionResult "Upload". </p>
  
  <hr>
  
  <pre><code>ajaxSubmit: function (fnBefore, fnSuccess, fnComplete, fnError) {
          var self = this, settings;
          self.uploadExtra();
          settings = $.extend({
              xhr: function () {
                  var xhrobj = $.ajaxSettings.xhr();
                  return self.initXhr(xhrobj, 98);
              },
              url: self.uploadUrl,
              type: 'POST',
              dataType: 'json',
              data: self.formdata,
              cache: false,
              processData: false,
              contentType: false,
              beforeSend: fnBefore,
              success: fnSuccess,
              complete: fnComplete,
              error: fnError
          }, self.ajaxSettings);
          self.ajaxRequests.push($.ajax(settings));
      },
  </code></pre>
  
  <hr>
  
  <p>Now i want to save all the files to server which are not uploaded using ActionResult and pass a value back to js. how to retrieve formdata and process.??</p>