SPlus.Utility.pickDocument (function (result){
var filename = result;
//TODO: Implement what to do with the filename of a file successfully added to the files collection
}, function (eResponse){
var errorInformation = eResponse['error#displayValue']; //Get error information
//TODO: Implement what to do with the error information
}, function (){
//TODO: Implement how to handle a user’s cancel
});