SP.AttachmentCollection.item property (sp.js)
Gets the file name of the attachment at the specified index in the collection. In C#, this property is the indexer for the SP.AttachmentCollection object.
Applies to: apps for SharePoint | SharePoint Foundation 2013 | SharePoint Server 2013
var value = SP.AttachmentCollection.get_item ()
Parameters
- index
Return value
A string that contains the file name.