Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. ASP.NET
  4. Upload file having more than 10 MB of Space

Upload file having more than 10 MB of Space

Scheduled Pinned Locked Moved ASP.NET
csharpasp-nettutorial
5 Posts 4 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • M Offline
    M Offline
    Mubashir Javaid
    wrote on last edited by
    #1

    Can anybody tell me that how to Upload file more than 10 MB of Data(in ASp.Net).

    _ N K M 4 Replies Last reply
    0
    • M Mubashir Javaid

      Can anybody tell me that how to Upload file more than 10 MB of Data(in ASp.Net).

      _ Offline
      _ Offline
      _AK_
      wrote on last edited by
      #2

      You have to change maxRequestLength parameter in the in web.config file for the larger files to get uploaded. By default that is limited to 4 MB.

      Apurva Kaushal

      1 Reply Last reply
      0
      • M Mubashir Javaid

        Can anybody tell me that how to Upload file more than 10 MB of Data(in ASp.Net).

        N Offline
        N Offline
        N a v a n e e t h
        wrote on last edited by
        #3

        Add this to web.config file

        <httpRuntime
        maxRequestLength="EnterYourValue"
        executionTimeout="Timeout"
        />

        This will tell ASP.NET to wait more time before terminating the process -- modified at 8:19 Thursday 12th July, 2007


        My Website | Ask smart questions

        1 Reply Last reply
        0
        • M Mubashir Javaid

          Can anybody tell me that how to Upload file more than 10 MB of Data(in ASp.Net).

          K Offline
          K Offline
          kubben
          wrote on last edited by
          #4

          In the web.config file there is an HttpRuntime element, under that there needs to be maxRequestLength element it defaults to 4096 which is 4MB. So if you want 10 MB you will have to set this value to be 10240. Hope that helps. Ben

          1 Reply Last reply
          0
          • M Mubashir Javaid

            Can anybody tell me that how to Upload file more than 10 MB of Data(in ASp.Net).

            M Offline
            M Offline
            Mubashir Javaid
            wrote on last edited by
            #5

            Thanks All of you for this favour

            1 Reply Last reply
            0
            Reply
            • Reply as topic
            Log in to reply
            • Oldest to Newest
            • Newest to Oldest
            • Most Votes


            • Login

            • Don't have an account? Register

            • Login or register to search.
            • First post
              Last post
            0
            • Categories
            • Recent
            • Tags
            • Popular
            • World
            • Users
            • Groups