SP.File.author Property
Applies to: SharePoint Foundation 2010
Gets a value that specifies the user who added the file.
var value = SP.File.get_author();
Property Value
Type: SP.User
Applies To
Exceptions
- FileNotFoundException
File cannot be found. Error code: -2147024894.
- UnauthorizedAccessException
The current user has insufficient permissions. Error code: -2147024891.