ASP.NET 3.5 and above only
Obout.Ajax.UI Controls - File Upload - Client side
Obout.Ajax.UI.FileUpload.FilesUploadArgs class
Inheritance HierarchySys.EventArgs Sys.CancelEventArgs Obout.Ajax.UI.FileUpload.FilesUploadArgs
Argument of this type is passed to the handlers of all
FileUpload's events.
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 |
cancel
|
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.
|
files
|
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;
|
info
|
string. Gets the information about errors if they happen, is empty if no errors were.
This property is only for the
afterServerResponse
event.
|