SP.FileCollection object
Represents a collection of SP.File objects.
Applies to: apps for SharePoint | SharePoint Foundation 2013 | SharePoint Server 2013
var object = new SP.FileCollection()
Members
The FileCollection object has the following members.
Constructor
The FileCollection object has the following constructor.
Constructor |
Description |
---|---|
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 |
---|---|
Adds a ghosted file to an existing list or document library. |
|
Get the file at the specified URL. |
|
Gets the file at the specified index of the collection. |
Properties
The FileCollection object has the following properties.
Property |
Description |
---|---|
Gets the file at the specified index of the collection. |
REST resource endpoint
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