SP.File Methods (sp.js)
The following table lists the methods of the SP.File object.
Applies to: apps for SharePoint | SharePoint Foundation 2013 | SharePoint Server 2013
Methods
Method |
Description |
---|---|
Approves the file submitted for content approval with the specified comment. |
|
Stops the chunk upload session without saving the uploaded data. If the file doesn’t already exist in the library, the partially uploaded file will be deleted. Use this in response to user action (as in a request to cancel an upload) or an error or exception. |
|
Checks the file in to a document library based on the check-in type. |
|
Checks out the file from a document library based on the check-out type. |
|
Continues the chunk upload session with an additional fragment. The current file content is not changed. |
|
Copies the file to the destination URL. |
|
Deletes the File object. |
|
Denies approval for a file that was submitted for content approval. |
|
Uploads the last file fragment and commits the file. The current file content is changed when this method completes. |
|
Reserved for internal use only. This method exposes the internal ContentVersion value inside of a ContentTag. |
|
Specifies the control set used to access, modify, or add Web Parts associated with this Web Part Page and view. |
|
Moves the file to the specified destination URL. |
|
Submits the file for content approval with the specified comment. |
|
Moves the file to the Recycle Bin and returns the identifier of the new Recycle Bin item. |
|
Starts a new chunk upload session and uploads the first fragment. |
|
Reverts an existing checkout for the file. |
|
Removes the file from content approval or unpublish a major version. |