File browse and select or upload using PnP File Picker in the SharePoint Framework (SPFx) webpart

πŸš€ This article has moved!

Please visit the updated version here:

πŸ‘‰ Go to Updated Article

8 thoughts on “File browse and select or upload using PnP File Picker in the SharePoint Framework (SPFx) webpart

  1. Thank you for sharing this guide. How can I modify this code so that it only allows file upload from a local drive to the document library.

    Like

  2. Hi Ravichandran,
    Using File Picker control, can we upload multiple files at a time? I am using SPFX react framework and trying to select multiple files at a time and attach it to SharePoint list item on item creation. Please suggest how we can do this.
    Thanks,
    Lalitha

    Liked by 1 person

  3. Do you know what the difference between the onChange and onSave properties is? According to the documentation, onChange is fired off ‘…when the file selection has been changed.’ and onSave is fired off ‘..when the file has been selected and picker has been closed.

    I’m trying to construct an example where one of the event handlers does not fire off when the other does. So far, simply selecting a new file in the picker does nothing, but once I hit ‘Insert’, both events fire off.

    Cheers!
    Chas

    Liked by 1 person

Leave a reply to askb Cancel reply