Workflow Soluiton

 View Only
  • 1.  File Size Limit of Files Using the InputFileComponent

    Posted Jun 03, 2010 07:28 PM
    Does anyone know if the file size limit can be increased when using the InputFileComponent? It seems to just fail when the attachment is close to 5 MB and over. I've tried putting in file size checks but it does not even go into the validation component and just errors out. Can this file size be increased as we would like to allow our users to upload files that are at between 1 MB - 10 MB to the workflow. This was tested in both debug and when deployed.


  • 2.  RE: File Size Limit of Files Using the InputFileComponent

    Posted Jun 04, 2010 12:11 PM

    I assume this is a web project?  If so, ASP.NET by default won't allow files greater than 5MB.  You can simply edit your web.config file to increase this limit.  The web.config file is located in your project root, and you can open it with notepad.  In the web.config you must edit the httpruntime element(http://msdn.microsoft.com/en-us/library/e1f13641.aspx) and increase the maxRequestLength & exectionTimeout properties.  Doing so will allow you to upload larger files.  Here's how you can do this:

     

    1. MOST IMPORTANT STEP - Backup the existing web.config file.  If you run into problems you'll be able to restore this backup.
    2. Find <system.web> in the web.config file.  Add a line break to create a new line underneath <sytem.web>.
    3. On the new line you just inserted, input this: <httpRuntime maxRequestLength="10000" executionTimeout="300" />  This should allow you to input files up to 10MB in size without problem.
    4. Save the file.  Test and see if it works.
    5. IF YOU RUN INTO ANY PROBLEMS RESTORE THE BACKUP YOU MADE IN STEP 1