Skip to main content
Skip table of contents

Allow files larger than 100MB

As of version 3.11.26 of EzeScan WebApps file upload limits are overridden using the appsettings.json file.

Remove the limit

In order to remove the upload limit add the following node to the bottom of your appsettings.json file:

JSON
"HostingOptions": {
    "RestrictUploadSize": false,
}

Make sure to restart the IIS application pool after modifying the appsettings.json file for the changes to take effect.

Increase the limit

In order to incease the limit to a higher value add the following node to the bottom of your appsettings.json file:

JSON
"HostingOptions": {
    "RestrictUploadSize": true,
    "RestrictUploadSizeBytes": "262144000"
}

The value of 262144000 bytes is equal to 250MB

Make sure to restart the IIS application pool after modifying the appsettings.json file for the changes to take effect.

Example

After adding the node your appsettings.json file should then look like the following:

JSON
{
  "_readme1": "Copy and rename this file to 'appsettings.json' to load configuration from it.",
  "_readme2": "Properties with leading underscores (_) are considered ignored properties. Removing from a property will enable/replace the defaults with the contents in this file.",
  "_readme3": "Remove the underscore (_) from _apps to enable MS SQL Server. Be sure you have configured database access for your app pool as per http://help.ezescan.com.au",
  "_apps": {
    "indexing": {
      "event": {
        "store": {
          "provider": "sqlServer",
          "sqlServer": {
            "connectionString": "Server=.\\SQLEXPRESS;Database=ezescan.webapps.indexing.event;Integrated Security=true;TrustServerCertificate=True"
          }
        }
      },
      "read": {
        "provider": "sqlServer",
        "sqlServer": {
          "connectionString": "Server=.\\SQLEXPRESS;Database=ezescan.webapps.indexing.read;Integrated Security=true;TrustServerCertificate=True"
        },
        "_interval": 1000
      },
      "processManager": {
        "provider": "sqlServer",
        "sqlServer": {
          "connectionString": "Server=.\\SQLEXPRESS;Database=ezescan.webapps.indexing.processManager;Integrated Security=true;TrustServerCertificate=True"
        },
        "_interval": 1000,
        "_preProcessingThreads": 1,
        "_processingThreads": 1
      },
      "files": {
        "db": {
          "provider": "sqlServer",
          "sqlServer": {
            "connectionString": "Server=.\\SQLEXPRESS;Database=ezescan.webapps.indexing.files;Integrated Security=true;TrustServerCertificate=True"
          }
        },
        "store": {
          "provider": "local",
          "local": {
            "rootPath": "~/App_Data/_internal/files"
          }
        }
      }
    },
    "_forms": {
      "event": {
        "store": {
          "provider": "sqlServer",
          "sqlServer": {
            "connectionString": "Server=.\\SQLEXPRESS;Database=ezescan.webapps.forms.event;Integrated Security=true;TrustServerCertificate=True"
          }
        }
      },
      "read": {
        "provider": "sqlServer",
        "sqlServer": {
          "connectionString": "Server=.\\SQLEXPRESS;Database=ezescan.webapps.forms.read;Integrated Security=true;TrustServerCertificate=True"
        },
        "_interval": 1000
      },
      "processManager": {
        "provider": "sqlServer",
        "sqlServer": {
          "connectionString": "Server=.\\SQLEXPRESS;Database=ezescan.webapps.forms.processManager;Integrated Security=true;TrustServerCertificate=True"
        },
        "_interval": 1000
      }
    }
  },
  "_storage": {
    "provider": "sqlServer",
    "sqlServer": {
      "connectionString": "Server=.\\SQLEXPRESS;Database=ezescan.webapps.storage;Integrated Security=true;TrustServerCertificate=True"
    },
	"LogRetention": {
		"Enabled" : true,
		"Email": 90,
		"User": 90
	}
  },
  "Logging": {
    "LogLevel": {
      "Default": "Information",
      "Microsoft": "Warning",
      "Microsoft.Hosting.Lifetime": "Information"
    }
  },
  "_Serilog": {
    "MinimumLevel": "Information"
  },
  "AllowedHosts": "*",
  "Authentication": {
    "EnableApiKey": true,
    "Providers": {
      "Cookie": {
      }
    }
  },
  "_Lookups": {
    "Concurrent": 8
  },
  "_ForwardedHeadersOptions": {
    "Enabled": true,
    "RequestLogging": false,
    "_AllowedHosts": "*.domain.com;host.domain.com"
  },
  "_LegacyProjectionMode": false,
  "_ProcessorLogCleanup": {
    "Enabled": true,
    "PreProcessingDays": 90,
    "ProcessingDays": 90,
    "ImportDays": 30
  },
  "HostingOptions": {
    "RestrictUploadSize": true,
    "RestrictUploadSizeBytes": "262144000"
  }
}
JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.