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. Limit size of pictures for upload in my web site (VS2010 – C#)

Limit size of pictures for upload in my web site (VS2010 – C#)

Scheduled Pinned Locked Moved ASP.NET
questioncsharp
4 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.
  • A Offline
    A Offline
    armm1388
    wrote on last edited by
    #1

    Hi How can I Limit size of pictures for upload in my web site (VS2010 – C#)? Thanks very much

    N J J 3 Replies Last reply
    0
    • A armm1388

      Hi How can I Limit size of pictures for upload in my web site (VS2010 – C#)? Thanks very much

      N Offline
      N Offline
      Not Active
      wrote on last edited by
      #2

      You can find that information in a place we like to call, documentation[^] "The default size limit is 4096 kilobytes (KB), or 4 megabytes (MB). You can allow larger files to be uploaded by setting the maxRequestLength attribute of the httpRuntime element."


      Failure is not an option; it's the default selection.

      1 Reply Last reply
      0
      • A armm1388

        Hi How can I Limit size of pictures for upload in my web site (VS2010 – C#)? Thanks very much

        J Offline
        J Offline
        Jack Li
        wrote on last edited by
        #3

        suggest used JS, U'll know the file size befor U loadup.

        1 Reply Last reply
        0
        • A armm1388

          Hi How can I Limit size of pictures for upload in my web site (VS2010 – C#)? Thanks very much

          J Offline
          J Offline
          jkirkerx
          wrote on last edited by
          #4

          Do you want to limit the size under a certain value?

          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