FileUploaderClientEventsItemUploaded Property

Gets or sets the client-side event raised after 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.1.3
C#
public string ItemUploaded { get; set; }

Property Value

String

Example

Example function:

JavaScript
function fileUploaderItemUploaded(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": "itemuploaded",
  "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