A class of the Microsoft.SharePoint namespace that represents a file in a SharePoint Web site that can be a Web Parts page, an item in a document library, or a file in a folder.

learn more… | top users | synonyms

2
votes
2answers
821 views

How to Copy SPFile to another library while retaining history

I am looking for code that will 100% duplicate a file including all historical versions, dates of versions, comments and anything else. My test code is showing that capturing all those details is a ...
2
votes
1answer
111 views

Why UniqueId missing in the REST api result from on-premise version

All, I found there is a property named UniqueId exist in the type of SP.File. And I try to retrieve the File item of the Page from SharePoint 2013 on-premise. The REST api url I used is /_api/web/...
1
vote
1answer
57 views

Add SPListItem with file

I have a library, that have items and each item has additional File field. I can upload them programmicaly - firsly file is uploaded, then empty item is updated with other info. Example of filled ...
1
vote
1answer
2k views

Programmaticly updating SPFileVersion.Properties Hashtable

Anyone who has experience with programmaticly updating the SPFileVersion.Properties Hashtable? I have a special situation where I would like to modify this Hashtable. Most of you will say: "Why on ...
0
votes
1answer
70 views

How do you get the ID of a file moved to another library?

I'm probably not doing the move the most efficient way for starters, because I'm only moving one file...not a group of files. I'd rather not have to loop through the library to find the file i want to ...
0
votes
1answer
356 views

How to upload spfile to document library?

I am creating new web in the ItemAdded event receiver and I want to upload the picture that is attached with the item to the newly created site's picture library and if no attachment is there then I ...
2
votes
0answers
703 views

Add New & Edit Form to List via C#

I have a project that needs to associate custom New and Edit forms with list instances. The lists are not part of the project, but the custom forms are. I currently deploy them to /_layouts/...
2
votes
0answers
247 views

Error thrown after SaveBinary in ItemAdded event handler

I'm working on a ItemAdded event for a document library, and I'm running into this error in SharePoint 2007... The file Lists/Shared Audit Documents/1387/Audit Report.docm has been modified by ...
1
vote
0answers
21 views

Timezone issues and file size differing for spfilezilla

I've uploaded some files from a local server to the Office 365 sharepoint cloud using spfilezilla. However I notice the times are different by the same offset of a few hours. Would this be a timezone ...