SP.AttachmentCreationInformation.fileName property (sp.js)

Gets or sets the file name of the list item attachment.

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

var value = SP.AttachmentCreationInformation.get_fileName ()
var value = SP.AttachmentCreationInformation.set_fileName ()

Return value

The file name of the list attachment.