FileUploaderClientEventsUploading Property

Gets or sets the client-side event raised before user uploads a group of files or folders in file uploader. The value should be a valid JavaScript function name which is accessible on the host page. Function names should be specified without parentheses like "FunctionName" or "Namespace.FunctionName".

Definition

Namespace: GleamTech.FileUltimate.AspNet.UI
Assembly: GleamTech.FileUltimate (in GleamTech.FileUltimate.dll) Version: 9.1.3
C#
public string Uploading { get; set; }

Property Value

String

Example

Example function:

JavaScript
function fileUploaderUploading(sender, e) {
    var fileUploader = sender;

    //Pretty print the event arguments
    var json = JSON.stringify(e, null, 2);

    console.log(json);

    /*
    //Optionally displaying a message to the user when canceling
    e.cancelMessage = e.eventName + " event is canceled!";

    //Canceling a before event (stops the corresponding action):
    return false;
    */
}

//SAMPLE OUTPUT:
/*
{
  "eventName": "uploading",
  "items": [
    {
      "itemType": "File",
      "name": "Spotlight 1.jpg",
      "nameWithoutPath": "Spotlight 1.jpg",
      "extension": "jpg",
      "dateModified": "2015-12-29T10:24:48.512Z",
      "type": "JPG File",
      "size": 1791421,
      "status": "Pending"
    },
    {
      "itemType": "File",
      "name": "New folder\\Screen 1.jpg",
      "nameWithoutPath": "Screen 1.jpg",
      "extension": "jpg",
      "dateModified": "2015-10-30T07:18:39.768Z",
      "type": "JPG File",
      "size": 1557291,
      "status": "Pending"
    }
  ],
  "uploadMethod": "Html5",
  "uploadMethodFeatures": {
    "selectFile": true,
    "selectMultiple": true,
    "selectFolder": true,
    "dragAndDrop": true,
    "displayThumbnails": true,
    "sendAsChunks": true,
    "sendAsMultipart": true,
    "reportProgress": true,
    "reportFileSize": true,
    "reportFileDate": true
  }
}
*/
//

See Also