File upload fails on file > 2 or 3 MB

Last post 12-23-2003 12:23 PM by cathal. 8 replies.

Sort Posts:

  • File upload fails on file > 2 or 3 MB

    03-11-2003, 4:13 PM
    • Participant
      1,322 point Participant
    • zonehenge
    • Member since 09-19-2002, 10:08 AM
    • Boise, Idaho
    • Posts 274

    Hi all,

    I am quite sure I am going to feel like a dope for asking, but, I cannot upload files that a larger than a couple of MB. I have looked through the code and I cannot figure out where to increase the acceptable file size. I remember a while back someone had asked a similar question about the vanilla IBS Portal and the answer was in a Web.Config setting, but for the life of me I cannot find the thread. I have increased the storage limit to 5GB so I don't think that is it. Does anyone know the answer to this riddle?

    Robert J Collins
    When economies tighten, organizations need more than ever to find ways to
    strengthen organizational effectiveness and support strategic objectives
    BGI DNN SCORM LMS Portal (ASP.Net)
  • Re: File upload fails on file > 2 or 3 MB

    03-11-2003, 5:06 PM
    • Star
      9,191 point Star
    • bhopkins
    • Member since 06-24-2002, 9:31 PM
    • Atlanta GA
    • Posts 1,843
    • TrustedFriends-MVPs
    Robert I think you have to do it in your machine.config file. You can find this file in your asp.net directory under program files.


    Bruce
  • Re: File upload fails on file > 2 or 3 MB

    03-11-2003, 6:56 PM
    • Participant
      1,322 point Participant
    • zonehenge
    • Member since 09-19-2002, 10:08 AM
    • Boise, Idaho
    • Posts 274

    That was it.

    I found this KB article: Q330809 Error Message When You Upload a Large File

    You have to set the values of maxRequestlength to the max files size you want and then set a reasonable timeout period.

    Robert J Collins
    When economies tighten, organizations need more than ever to find ways to
    strengthen organizational effectiveness and support strategic objectives
    BGI DNN SCORM LMS Portal (ASP.Net)
  • Re: File upload fails on file > 2 or 3 MB

    12-21-2003, 11:44 PM
    • Member
      90 point Member
    • DMT
    • Member since 10-11-2002, 1:20 AM
    • Posts 18
    In changing this option do you effect the server proformace?
  • Re: File upload fails on file > 2 or 3 MB

    12-22-2003, 3:44 AM
    • Star
      8,010 point Star
    • cjsmitty
    • Member since 06-29-2002, 3:35 PM
    • Rockford, IL
    • Posts 1,600
    This adjustment has no bearing on server performance, provided you do not adjust connectionManagement, maxWorkerThreads, appRequestQueueLimit or minFreeThreads in the processModel.
    ~Chris

    Net Data Design
    706Horsman.us
  • Re: File upload fails on file > 2 or 3 MB

    12-22-2003, 6:14 AM
    • Member
      90 point Member
    • DMT
    • Member since 10-11-2002, 1:20 AM
    • Posts 18
    thxs
  • Re: File upload fails on file > 2 or 3 MB

    12-22-2003, 7:04 PM
    • Member
      90 point Member
    • DMT
    • Member since 10-11-2002, 1:20 AM
    • Posts 18
    l have been able to upload 5 meg files but have been unsuccessful in uploading files that are bigger.

    I change the settings to accomodate 15 meg.
  • Re: File upload fails on file > 2 or 3 MB

    12-23-2003, 1:01 AM
    • Member
      90 point Member
    • DMT
    • Member since 10-11-2002, 1:20 AM
    • Posts 18
    is there some code l should add to the web.conf file?
  • Re: File upload fails on file > 2 or 3 MB

    12-23-2003, 12:23 PM
    • Star
      13,648 point Star
    • cathal
    • Member since 06-18-2002, 12:02 PM
    • Belfast, Northern Ireland
    • Posts 2,702
    • TrustedFriends-MVPs
    You may be suffering from a script timeout due to the amount of data being transferred. The default script timeout is 90seconds, which with a 512kb connection would give approximately 5MB maximum upload. If you need a longer timeout throughout the application, edit your web.config file, and add the executionTimeout attribute and set it to the value you need e.g. the following extends it to 180 seconds

    <httpRuntime useFullyQualifiedRedirectUrl="true" maxRequestLength="8192" executionTimeout="180" />

    Alternatively, you can use Server.ScriptTimeout at the page level.

    Cathal
Page 1 of 1 (9 items)