Intersoft Support Center

Limit Total Upload Size

This walkthrough shows you how to configure upload file size limit in WebFileUploader.

During this walkthrough, you will learn how to do the following:

  • Configuring upload location for WebFileUploader
  • Configuring file size limit for WebFileUploader


In order to complete this walkthrough, you will need the following:

  • Visual Studio 2008/2010 Application.

 Step-By-Step Instructions

To enable mail merge with custom collection

  1. Launch Visual Studio.NET 2008.
  2. Click on File menu, then select New and click Web Site.
  3. Select ASP.NET Web Site in the Template box and set Location to HTTP.
  4. Named the Web Site and click OK.
  5. Right-click on Project's name and select New Folder.
  6. Named the folder Upload.
  7. Right-click on Project's name and select Add New Item.
  8. Select WebForm in the My Templates box and named it as Walkthrough.aspx.
  9. Drag WebFileUploader instance from ToolBar to WebForm.
  10. Set the UploadPath property to the newly created Upload folder, the value of this property should be ./Upload.
  11. Set the UploadSizeLimit to 50000, to limit the upload of each file to 50KB. TotalUploadSizeLimit could also be set to limit the total file size uploaded to the server in each upload process.
  12. Run the sample in the Web Browser, trying to upload a file larger than 50KB will result in a failure.

Previous Next