FileUploaderClientEventsItemUploading Property

Gets or sets the client-side event raised before user uploads a file or folder of a group 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.2.0
C#
public string ItemUploading { get; set; }

Property Value

String

Example

Example function:

JavaScript
function fileUploaderItemUploading(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": "itemuploading",
  "item": {
    "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"
  },
  "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