FileManagerClientEventsUploading Property

Gets or sets the client-side event raised before user uploads a file or folder in file manager. 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 Uploading { get; set; }

Property Value

String

Example

Example function:

JavaScript
function fileManagerUploading(sender, e) {
    var fileManager = sender;

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

    alert(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
  },
  "targetFolder": {
    "itemType": "Folder",
    "name": "Folder Two",
    "fullPath": "[1. Root Folder]:\\Folder Two"
  }
}
*/

See Also