[CLOSED] File Uploader Not working for Large files(more than 2 MB)

  1. #1

    [CLOSED] File Uploader Not working for Large files(more than 2 MB)

    Trying to browse the file with the help of FileUploader. On Save button calling "BrowseFile" action.For file upto 2 MB its working fine.But for the bigger file the Browse File action is not getting called.

    I have mentioned following in Web.config.Is there any other setting need to be done?

     <bindings>
          <basicHttpBinding>
            <binding  maxReceivedMessageSize="1006710886">
              <readerQuotas maxStringContentLength="5242880" maxArrayLength="1006710886" />
              <security mode="None">
                <transport clientCredentialType="None" proxyCredentialType="None"
                  realm="" />
              </security>
            </binding>
          </basicHttpBinding>
        </bindings>
    <div>
         @(Html.X().ResourceManager(ViewBag.ManagerConfig as MvcResourceManagerConfig))
         @( this.Html.X().FormPanel()
                .ID("UserFromPanel")
                .Url(Url.Action("BrowseFile"))
                .DefaultAnchor("100%")              
                .Border(false)
                .BodyStyle("margin-top: -10px;padding:10px")
                .Cls("x-custom-panel")
                .ButtonAlign(Alignment.Center)
                .Items
                    (
                     Html.X().Container()                            
                                .Border(false)
                                .Layout(LayoutType.HBox)
                                .LayoutConfig(new HBoxLayoutConfig{Align= HBoxAlign.Top})                                                                                                                   
                                .Items(
                                        Html.X().FileUploadField().ID("file_browse").Width(495).ButtonText("Browse"),
                                       Html.X().Button().Text("Save").Padding(5).Width(100).ID("btnSave")
                                       .DirectEvents(de => {
                                            de.Click.Url = Url.Action("BrowseFile","ExtNet");})
                                        )       
        ))
    </div>
    Controller

    
            [HttpPost]
            public ActionResult BrowseFile(string file)
            {
                if (HasFile(Request.Files["file_browse"]))
                {
    
                }
                return View();
            }
    Last edited by Daniil; Mar 12, 2013 at 5:42 AM. Reason: [CLOSED]
  2. #2
    This does sound like either a request timeout issue, or an issue with the ASP.NET runtime cancelling requests over a certain size. I believe the size issue is overridden in the Web.config using the maxRequestLength setting in the <httpRuntime> node.

    If you inspect the requests with Fiddler, what is happening to those requests? There should be a response code and message indicating what happened to the request.
    Geoffrey McGill
    Founder
  3. #3
    Quote Originally Posted by geoffrey.mcgill View Post
    I believe the size issue is overridden in the Web.config using the maxRequestLength setting in the <httpRuntime> node.
    +1

    Here is a related thread.
    http://forums.ext.net/showthread.php?6333

Similar Threads

  1. example about an uploader multi manager
    By tk.Mageztik in forum 2.x Help
    Replies: 1
    Last Post: Sep 13, 2012, 6:05 AM
  2. File Upload Field - Multiple files?
    By peter.campbell in forum 1.x Help
    Replies: 2
    Last Post: Jul 04, 2012, 11:40 AM
  3. File uploader with the list of uploaded files
    By AlexMaslakov in forum 1.x Help
    Replies: 0
    Last Post: Aug 11, 2011, 11:56 AM
  4. Replies: 1
    Last Post: Jun 23, 2011, 9:37 AM
  5. Replies: 3
    Last Post: Nov 27, 2008, 12:52 PM

Posting Permissions