Click or drag to resize

FileBrowserServicesGetFileList Method


Retrieves the list of file in specified folder

Namespace:  IngeniuxCMService
Assembly:  IngeniuxCMService (in IngeniuxCMService.dll) Version: 10.3.169
Syntax
public XHRServiceResponseGeneric<FileBrowserFileListing> GetFileList(
	string folderId,
	string type,
	string targetId = ""
)

Parameters

folderId
Type: SystemString

The folder to get files listing for

Examples
"Images/homeslider"
type
Type: SystemString

The type of asset this folder is folder. The choices are "File", "Image", "Media", "Prebuilt", "Stylesheet"

targetId (Optional)
Type: SystemString

Filter for assets marked for the specified publishing target id

Return Value

Type: XHRServiceResponseGenericFileBrowserFileListing

List of files in the specified folder

Examples
Sample JSON return
JavaScript
{
    "code": 0,
    "error": null,
    "message": {
        "headers": [{
            "bodyTextAlign": "left",
            "label": "#",
            "minWidth": "30px",
            "type": "fileType"
        }, {
            "bodyTextAlign": "left",
            "label": "Name",
            "minWidth": "120px",
            "type": "string"
        }, {
            "bodyTextAlign": "left",
            "label": "Size (KB)",
            "minWidth": "90px",
            "type": "float"
        }, {
            "bodyTextAlign": "left",
            "label": "Type",
            "minWidth": "90px",
            "type": "string"
        }, {
            "bodyTextAlign": "left",
            "label": "Date Modified",
            "minWidth": "100px",
            "type": "xmldate"
        }],
        "rows": [{
            "attributes": [{
                "Key": "filePath",
                "Value": "aeroplane.png"
            }],
            "elements": ["png", "aeroplane.png", "137.25", "PNG image", "20130122T12:07:28"]
        }, {
            "attributes": [{
                "Key": "filePath",
                "Value": "balloon.png"
            }],
            "elements": ["png", "balloon.png", "134.92", "PNG image", "20130122T12:07:28"]
        }, {
            "attributes": [{
                "Key": "filePath",
                "Value": "bg-green.png"
            }],
            "elements": ["png", "bg-green.png", "0.95", "PNG image", "20130215T01:55:28"]
        }, {
            "attributes": [{
                "Key": "filePath",
                "Value": "bg-heading.png"
            }],
            "elements": ["png", "bg-heading.png", "0.93", "PNG image", "20130104T19:06:54"]
        }, {
            "attributes": [{
                "Key": "filePath",
                "Value": "bg-sky.png"
            }],
            "elements": ["png", "bg-sky.png", "0.54", "PNG image", "20130122T12:07:28"]
        }, {
            "attributes": [{
                "Key": "filePath",
                "Value": "bg-text.png"
            }],
            "elements": ["png", "bg-text.png", "0.92", "PNG image", "20130202T17:55:54"]
        }, {
            "attributes": [{
                "Key": "filePath",
                "Value": "sequence-logo.png"
            }],
            "elements": ["png", "sequence-logo.png", "2.59", "PNG image", "20130122T12:07:28"]
        }]
    }
}
See Also