All Questions
Tagged with spfile unsafe-updates
1 question
0
votes
1
answer
553
views
SPFile Update fails, Exists returns true
I have a block of code wrapped in an if:
mySite.AllowUnsafeUpdates();
SPFile mySPFile = web.GetFile(someURL);
if (mySPFile.Exists) /*returns true, enters code block*/ {
//... make some updates
...