SP.ListCollection.ensureSiteAssetsLibrary() Method
Applies to: SharePoint Foundation 2010
In this article
Return Value
Remarks
Applies To
Gets a list that is the default asset location for images or other files, which the users upload to their wiki pages.
var value = SP.ListCollection.ensureSiteAssetsLibrary();
Return Value
Type: SP.List
The list that is the default location for wiki page assets.
Remarks
If the list does not exist, this method creates and returns a list designated as a default asset location for images or other files, which the users upload to their wiki pages.