Select the search type
  • Site
  • Web
Search
You are here:  Support/Forums
Support

Bring2mind Forums

PrevPrev Go to previous topic
NextNext Go to next topic
Last Post 08/18/2006 5:01 PM by  Peter Donker
Uploading Large Files - Some helpful Info
 1 Replies
Sort:
You are not authorized to post a reply.
Author Messages
Rob Ralston
Basic Member
Basic Member
Posts:164


--
08/18/2006 3:30 PM

    Not sure which forum to post this in, but I thought it would help other DMX users.

    One of my clients has a need to upload large files with DMX (>30MB). Sometimes these are PowerPoint files with lots of embedded images, or they may be a zip file of a folder structure they want to upload to DMX which are over 100MB. Either way, we had timeouts occur which aborted the upload process and obviously frustrated the user.

    I have finally resolved this problem after I stumbled across a forum post on the DNN site. This post made me aware of timeout value which can be placed in the web.config file to extend the default execution timeout for file uploads. The parameter is called executionTimeout (pretty clever name, huh?)

    Along with "maxRequestLength" you can adjust this time to allow for the overall operation. Here's an example with maxRequestLength set to allow 100MB file sizes, and allow the operation to take up to 10 minutes executionTimeout="600":

        <!-- allow large file uploads -->
              useFullyQualifiedRedirectUrl="true"
          maxRequestLength="100000"
          requestLengthDiskThreshold="8192"
          executionTimeout="600" />

    For a zip file, which is to be unzipped by DMX, it involves uploading the file, unzipping the file in a temporary location, then adding everything to the DMX collection.

    As a test, I uploaded a 62MB zip of folders/files which took about 6 minutes to complete on my server.

    I hope this helps someone else!

    Rob Ralston

    Peter Donker
    Veteran Member
    Veteran Member
    Posts:4536


    --
    08/18/2006 5:01 PM
    Thanks Rob. This is a common oversight as the standard dnn file does not include this parameter.

    For DMX 4 I plan to make a more loose connection between the upload control and the module so that users can exchange it for a (commercially available) custom upload control (these commonly allow you to upload files of any size).
    You are not authorized to post a reply.