ASP.NET 3.5 and above only

Obout.Ajax.UI Controls - File Upload - Client side

Obout.Ajax.UI.FileUpload.FilesUploadArgs class

 Inheritance Hierarchy

Argument of this type is passed to the handlers of all FileUpload's events.
Note Note
To get property values for client API properties, you must call property accessor method that is named with the get_ prefix. For example, to get a value for a property such as files, you call the get_files method:
function onClientFilesPicked(sender, args) {
  var files = args.get_files();
  var totalSize = 0;
  for (var i = 0; i < files.length; i++) {
      totalSize += files[i].size;
  }
  setTimeout(function () {
      alert("Total size: " + Obout.Ajax.UI.FileUpload.FormatBytes(totalSize));
  }, 0);
}

Properties

Name Description
propertycancel string. Gets or sets a value that specifies whether the event source should cancel the operation that caused the event. (Inherited from Sys.CancelEventArgs.)
This property is only for the beforeUpload and filesPicked events.
propertyfiles array. Gets an array of objects with the following fields:
  • extension - extension of the file;
  • name - name of the file;
  • size - size of the file;
  • type - MIME type of the file;
propertyinfo string. Gets the information about errors if they happen, is empty if no errors were.
This property is only for the afterServerResponse event.

"Can't wait to play with the new controls, you guys make my life so much easier with the controls. Keep up the great work."

Fuzzy

Random testimonial   All testimonials