This is my upload.cshtml which upload multiple files. I have three problems with these code,

  1. I need a textbox to be added every time when "Add Another File: is clicked
  2. I need progress bar while files are getting uploaded(uusing JS/jquery)
  3. Need to upload files of 1 GB. Currently 250mb works, but not 600 mb

I have added this in web.config,

<compilation debug="true" targetFramework="4.5" />
<httpRuntime targetFramework="4.5" maxRequestLength="2097152" useFullyQualifiedRedirectUrl="true" executionTimeout="40000" requestLengthDiskThreshold="2147483647" />


@using Microsoft.Web.Helpers;
<script src=""></script>
<script src=""></script>

@using (Html.BeginForm("Upload", "Home", FormMethod.Post, new { enctype = "multipart/form-data" }))
        initialNumberOfFiles: 1,
        allowMoreFilesToBeAdded: true,
        includeFormTag: false,
        addText: "Add another file")
    <input type="submit" value="Upload" id="upload" />
<div style="color:Red;font-size:14px">@Html.Raw(HttpUtility.HtmlDecode(ViewBag.Message))</div>

Please help..

Related posts

Recent Viewed