Skip to content Skip to sidebar Skip to footer

Is There A Client Side Javascript Library For OneDrive For Business That Provides A File/folder Picker Control?

I'm looking for a file picker control like the one offered in the OneDrive (live connect) javascript library, but which instead is for 'OneDrive for Business'. In other words, I wa

Solution 1:

Your understanding that OneDrive for Business is based on SharePoint 2013 is mostly correct. In reality, OneDrive for Business IS SharePoint 2013--it's just a new name for a certain part of SharePoint 2013.

I have worked extensively on OneDrive for Business and SharePoint as a whole, and as far as I know, no such control exists. All of the API that I'm aware of (except perhaps some APIs in the Social part of SharePoint 2013) is functionality-focused, and does not provide controls. This is by design, because SharePoint has a rich ecosystem of customization and extension that wants functionality to be present in order to build custom UI on top of, and in most cases a standardized javascript control would be a glaring exception, from a UI design perspective.

I would encourage you to implement the control using the SharePoint 2013 REST API. Specifically, the calls regarding file operations are here: http://msdn.microsoft.com/en-us/library/office/dn450841(v=office.15).aspx.

I haven't used the new Office 365 REST API yet, but looking at the status of it, the "My Files" portion hasn't yet been released for JavaScript (source: http://blogs.office.com/2014/05/12/net-and-javascript-libraries-for-office-365-apis/), and since it may or may not have what you need I would recommend sticking with the existing SharePoint 2013 REST API that will definitely be able to do what you want.

I wouldn't be surprised if someone outside of Microsoft had already written one, but I couldn't find anything posted online, so either it hasn't been done or hasn't been made easily available online.


Post a Comment for "Is There A Client Side Javascript Library For OneDrive For Business That Provides A File/folder Picker Control?"