select

Upload / Client-side API

Rate this demo: Feedback
Run example in: C# VB.NET Change Skin:
Vista
  • BlackBlack
  • DefaultDefault
  • ForestForest
  • HayHay
  • Office2007Office2007
  • OutlookOutlook
  • SimpleSimple
  • SitefinitySitefinity
  • SunsetSunset
  • TelerikTelerik
  • VistaVista
  • Web20Web20
  • WebBlueWebBlue
  • Windows7Windows7
 




  • Uploaded % ( ) Total
  • Uploaded files: % () Total files:
  • Uploading file:
  • Elapsed time:  Estimated time:  Speed:
No uploaded files


Note: The largest allowed combined file size for upload in this example is 100MB. This is specified by the maxRequestLength="102400" set in Web.config file. If you attempt to upload files with total size greater that 100MB you will get "Page Not Found" error. For more information about uploading large files visit the help article Uploading Large Files

Example Source Code & Description

Instructions
Open in new window
  • Client-side API

    RadUpload provides different client-side methods to manipulate the files selected for upload in the input file fields - clear the input fields, get the selected files names for further manipulation, etc. Two of them are:

    • clearFileInputAt(index) - clears the value of a file input at the specified index in the RadUpload instance
    • getFileInputs() - gets an array, containing all file inputs in the RadUpload instance. Cleint-side you can iterate through the selected files for upload whose number is getFileInputs().length

    RadProgressManager exposes the OnClientSubmitting event which is triggered just before the form is submitted and is suitable for handling manipulation of the files selected for upload just before they are uploaded.

Compatible with ASP.NET 2.0, 3.5 AJAX enabled Optimized for Visual Studio 2005, 2008
Copyright 2002-2010 © Telerik. All right reserved  | 
Telerik Inc., 460 Totten Pond Rd, Suite 640, Waltham, MA 02451

www.telerik.com  |  Terms of Use  |  Contact Us