SPlus.Utility.URL.download (resourceUrl, useCache, function (filePath){
//TODO: Implement what to do with filePath
}, function (errorResponse){
var error = errorResponse['error#displayValue']; //Getting the error
//TODO: Implement how to handle errors
}, function (cancelResponse){
//TODO: Implement how to handle a user’s cancel
});