This documentation is archived and is not being maintained.

SP.FileCreationInformation object

SharePoint 2013

Represents properties that can be set when creating a file by using the FileCollection.Add method.

Last modified: March 09, 2015

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

var object = new SP.FileCreationInformation()

The FileCreationInformation object has the following members.

Constructor

The FileCreationInformation object has the following constructor.

Constructor

Description

FileCreationInformation

Initializes a new instance of the SP.FileCreationInformation object.

Properties

The FileCreationInformation object has the following properties.

Property

Description

content

The binary content of the file.

overwrite

Indicates whether to overwrite an existing file with the same name and in the same location as the one being added.

typeId

url

The URL of the file.

Show: