This documentation is archived and is not being maintained.

SP.FileCollection object

SharePoint 2013

Represents a collection of SP.File objects.

Last modified: March 09, 2015

Applies to: apps for SharePoint | SharePoint Foundation 2013 | SharePoint Server 2013

var object = new SP.FileCollection()

The FileCollection object has the following members.

Constructor

The FileCollection object has the following constructor.

Constructor

Description

FileCollection

This member is reserved for internal use and is not intended to be used directly from your code.

Methods

The FileCollection object has the following methods.

Method

Description

add

addTemplateFile

Adds a ghosted file to an existing list or document library.

getByUrl

Get the file at the specified URL.

itemAt

Gets the file at the specified index of the collection.

Properties

The FileCollection object has the following properties.

Property

Description

childItemType

item

Gets the file at the specified index of the collection.

See FileCollection resource for more information.

Endpoint URI structure

http://<sitecollection>/<site>/_api/web/folders/getbyurl(folderrelativeurl)/files

HTTP requests

This resource supports the following HTTP commands:

GET syntax

GET http://<sitecollection>/<site>/_api/web/folders/getbyurl(folderrelativeurl)/files

POST syntax

POST http://<sitecollection>/<site>/_api/web/folders/getbyurl(folderrelativeurl)/files
Show: