Skip to content

Commit 7471eed

Browse files
authored
Update Upload-large-files-sample-app-for-SharePoint.md
1 parent 77c4620 commit 7471eed

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

docs/solution-guidance/Upload-large-files-sample-app-for-SharePoint.md

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,7 @@ public Microsoft.SharePoint.Client.File UploadFileSlicePerSlice(ClientContext ct
166166
ctx.ExecuteQuery();
167167

168168
// File object.
169-
Microsoft.SharePoint.Client.File uploadFile;
169+
Microsoft.SharePoint.Client.File uploadFile = null;
170170

171171
// Calculate block size in bytes.
172172
int blockSize = fileChunkSizeInMB * 1024 * 1024;
@@ -255,9 +255,6 @@ public Microsoft.SharePoint.Client.File UploadFileSlicePerSlice(ClientContext ct
255255
}
256256
else
257257
{
258-
// Get a reference to your file.
259-
uploadFile = ctx.Web.GetFileByServerRelativeUrl(docs.RootFolder.ServerRelativeUrl + System.IO.Path.AltDirectorySeparatorChar + uniqueFileName);
260-
261258
if (last)
262259
{
263260
// Is this the last slice of data?

0 commit comments

Comments
 (0)