Using file picker component in SharePoint Framework Web Part

Brass Contributor

Is it somehow possible to use the file picker control which is being used by Microsofts Client-Side Web Parts (like the Document or Quick links Web Parts) in our own Web Parts?

 

2017-05-09 11_51_04-Just Links and 8 more pages ‎- Microsoft Edge.jpg

 

I have the requirement to implement a file picker for a certain Web Part and it would be great to use the "standard" one which is already being used by Microsoft.

 

7 Replies

Sorry to ask you directly, but can you help out maybe? @Vesa Juvonen @Waldek Mastykarz

I don't think there is a ready-to-use component for it. If you'd like to use it, you'd need to build it yourself using the building blocks from Office UI Fabric.

@Waldek Mastykarz are there any plans from Microsoft to release a file picker ( Asset Picker ) component anytime in the future?

in Classic SharePoint there was an already component that we can just utilize.

I don't know of any plans to release a first party component, but if I had to make a bet, I'd say that it's a reasonable request for the Reusable React controls for SPFx solutions or Reusable SPFx property pane controls.

Looking for this control . 

Are all the standard web parts that ship on Modern Pages, "1st party" components and therefore not open source? What is the standard and best practice approach for extending the 1st party components in this case? Understandably a use case for creating a uniform user experience would be to have the same file picker utility for various custom web parts, but as it stands that does not seem possible. 

@robin I have implemented same thing in my Project , you can refer https://oliviercc.github.io/sp-client-custom-fields/


@Robin Güldenpfennig wrote:

Is it somehow possible to use the file picker control which is being used by Microsofts Client-Side Web Parts (like the Document or Quick links Web Parts) in our own Web Parts?

 

2017-05-09 11_51_04-Just Links and 8 more pages ‎- Microsoft Edge.jpg

 

I have the requirement to implement a file picker for a certain Web Part and it would be great to use the "standard" one which is already being used by Microsoft.