Feedback by UserVoice

I suggest you ....

Add ability to download old version of a file via API/CSOM

One should be able to download an older version of a file using something like:
FileInformation info = File.OpenBinaryDirect(context, "/" + _fileVersion.Url);

But instead that throws a 401 error.

See MSDN thread here:

229 votes
Sign in
Sign in with: facebook google
Signed in as (Sign out)
You have left! (?) (thinking…)
Chuck shared this idea  ·   ·  Flag idea as inappropriate…  ·  Admin →
boom! it's done  ·  SharePoint Dev Platform Team responded  · 

Thanks for your feedback! We’re happy to report that your suggestion is now part of the September 2017 version of the CSOM NuGet package. You can find details and simple code sample from following blog post –

Technically file access has been available for a while with SharePoint Online CSOM, but with the latest updates, you can also access list item field version and we have included a code sample for the APIs in this blog post also around file version downloading.


Comments are closed

Feedback and Knowledge Base