SP.FileCollection.item property (sp.js)
Gets the file at the specified index of the collection.
Applies to: apps for SharePoint | SharePoint Foundation 2013 | SharePoint Server 2013
var value = SP.FileCollection.get_item ()
Parameters
- index
Return value
Type: SP.File
The file at the specified index of the collection.
REST resource endpoint
To get a file, send a GET request to the Files endpoint. See FileCollection resource for more information.