FileUpload size and win2003 service pack1 ??

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • james

    FileUpload size and win2003 service pack1 ??

    hi!
    I have written an asp.net web page which can upload files,
    i didn't modify the machine.config and the web.config
    file, when i upload a file that size < 1mb, it can run
    correctly, but when i upload a file that size > 1mb and <
    4mb, it cause an error.

    then i open the machine.config and the web.config file, it
    show
    <httpRuntime executionTimeou t="90" maxRequestLengt h="4096"

    the asp.net web page can run correctly these days, but
    yesterday, after i installed windows 2003 service pack 1,
    then if uploaded-file size > 1mb it will cause an error.

    please help~~thank you :)



  • Patrick Olurotimi Ige

    #2
    Re: FileUpload size and win2003 service pack1 ??

    James how does it occur?
    Does it work sometimes or the error always persist?




    *** Sent via Developersdex http://www.developersdex.com ***

    Comment

    • James chen

      #3
      Re: FileUpload size and win2003 service pack1 ??

      when file > 1mb, it always occur.


      *** Sent via Developersdex http://www.developersdex.com ***

      Comment

      • Patrick Olurotimi Ige

        #4
        Re: FileUpload size and win2003 service pack1 ??

        web.config supports an <httpRuntime> element under the system.web
        section -- specifically something like this

        <httpRuntime maxRequestLengt h="10000" />
        will establish a max file upload size of 10,000 Kilobytes for example
        Try that..
        Are u sure u are saving ur web.config or machine.config well after
        modification and make sure its well formed?
        Patrick




        *** Sent via Developersdex http://www.developersdex.com ***

        Comment

        Working...