getFilenameFromUri

getFilenameFromUri

Given a URI, returns the last segment of the URI, removing any path or query information.

Parameters:
Name Type Description
uri String The Uri.
Throws:
DeveloperError : uri is required.
Returns:
String The last segment of the Uri.
Example
//fileName will be"simple.czml";
var fileName = getFilenameFromUri('/Gallery/simple.czml?value=true&example=false');
Source: